Add support for Iceshrimp.NET emoji reaction notifications

This commit is contained in:
Volpeon
2025-08-04 22:04:27 +02:00
committed by nicole mikołajczyk
parent 5d0c86b3ce
commit 005a6b09b1
3 changed files with 4 additions and 1 deletions

View File

@ -101,6 +101,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
...notification,
type: notification.type === 'pleroma:report'
? 'admin.report'
: notification.type === 'reaction'
? 'emoji_reaction'
: notification.type?.replace(/^pleroma:/, ''),
})),
v.variant('type', [

View File

@ -36,7 +36,7 @@ const NOTIFICATIONS_SCROLL_TOP = 'NOTIFICATIONS_SCROLL_TOP' as const;
const FILTER_TYPES = {
all: undefined,
mention: ['mention'],
favourite: ['favourite', 'emoji_reaction'],
favourite: ['favourite', 'emoji_reaction', 'reaction'],
reblog: ['reblog'],
poll: ['poll'],
status: ['status'],

View File

@ -12,6 +12,7 @@ const NOTIFICATION_TYPES = [
'move',
'chat_mention',
'emoji_reaction',
'reaction',
'update',
'event_reminder',
'participation_request',