Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export type Endpoints = {
// notifications
'notifications/create': { req: { body: string; header?: string | null; icon?: string | null; }; res: null; };
'notifications/mark-all-as-read': { req: NoParams; res: null; };
'notifications/read': { req: { notificationId: Notification['id']; }; res: null; };
'notifications/read': { req: { notificationIds: Notification['id'][]; }; res: null; };
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/misskey-dev/misskey/blob/42833cd9219cb8f5abd1756aa1c57b024b125710/packages/backend/src/server/api/endpoints/notifications/read.ts#L23-L44

実際には両方許可していますね

misskey-dev/misskey#10409 がマージされたらあとでそっちで修正した方が良さそうです

Copy link
Copy Markdown
Author

@yuchiki yuchiki Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

理解しました。

そちらがmergeされたらhttps://github.com/misskey-dev/misskey/pull/10331 の中で修正します!


// page-push
'page-push': { req: { pageId: Page['id']; event: string; var?: any; }; res: null; };
Expand Down