forked from Gitlink/gitlink-cli
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:
parent
49415faf54
commit
97ddd456dd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue