From 97ddd456dd16d24c695c47b1965050ec66df4d5e Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Thu, 4 Jun 2026 09:44:48 +0800 Subject: [PATCH] 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 --- shortcuts/notification/notification.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shortcuts/notification/notification.go b/shortcuts/notification/notification.go index 243e011b..10c9eee1 100644 --- a/shortcuts/notification/notification.go +++ b/shortcuts/notification/notification.go @@ -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)