diff options
| author | Amelia Yukii <amelia.yukii@shourai.de> | 2024-02-20 15:10:41 +0000 |
|---|---|---|
| committer | Amelia Yukii <amelia.yukii@shourai.de> | 2024-02-20 15:10:41 +0000 |
| commit | 27ea1b7133075a62f310084ee8fe3cd71185ca78 (patch) | |
| tree | 4043fefdc93e3c66159d6a6ac565591fa25642ce /packages/backend/src/server/api | |
| parent | merge: Warn when missing alt text (!423) (diff) | |
| parent | Note Edited notification type (diff) | |
| download | sharkey-27ea1b7133075a62f310084ee8fe3cd71185ca78.tar.gz sharkey-27ea1b7133075a62f310084ee8fe3cd71185ca78.tar.bz2 sharkey-27ea1b7133075a62f310084ee8fe3cd71185ca78.zip | |
merge: Note Edited notification type (!432)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/432
Closes #403
Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Approved-by: dakkar <dakkar@thenautilus.net>
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/notifications-grouped.ts | 2 | ||||
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/notifications.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts index 703808d279..d400cbc1c9 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts @@ -164,7 +164,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- groupedNotifications = groupedNotifications.slice(0, ps.limit); const noteIds = groupedNotifications - .filter((notification): notification is FilterUnionByProperty<MiNotification, 'type', 'mention' | 'reply' | 'quote'> => ['mention', 'reply', 'quote'].includes(notification.type)) + .filter((notification): notification is FilterUnionByProperty<MiNotification, 'type', 'mention' | 'reply' | 'quote' | 'edited'> => ['mention', 'reply', 'quote', 'edited'].includes(notification.type)) .map(notification => notification.noteId!); if (noteIds.length > 0) { diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 52b6749e3f..d9404ea9c5 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -113,7 +113,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- } const noteIds = notifications - .filter((notification): notification is FilterUnionByProperty<MiNotification, 'type', 'mention' | 'reply' | 'quote'> => ['mention', 'reply', 'quote'].includes(notification.type)) + .filter((notification): notification is FilterUnionByProperty<MiNotification, 'type', 'mention' | 'reply' | 'quote' | 'edited'> => ['mention', 'reply', 'quote', 'edited'].includes(notification.type)) .map(notification => notification.noteId); if (noteIds.length > 0) { |