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