feat: 为 GoToSocial API 请求添加 User-Agent 标识
This commit is contained in:
@@ -186,6 +186,7 @@ async function sendToGoToSocial(message, env) {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
"Content-Type": "application/json",
|
||||
"User-Agent": "wps-gotosocial-bot/1.0",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
status: message,
|
||||
|
||||
Reference in New Issue
Block a user