fix: add type field to notification read request body

API requires both type and ids fields for marking notifications as read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
15972095207 2026-06-04 09:44:48 +08:00
parent 49415faf54
commit 97ddd456dd
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ func Shortcuts() []*common.Shortcut {
return fmt.Errorf("invalid id: %s", id)
}
body := map[string]interface{}{
"type": "notification",
"ids": []int{idInt},
}
env, err := ctx.CallAPI("POST", fmt.Sprintf("/users/%s/messages/read", login), body)