diff --git a/packages/pl-api/lib/entities/notification.ts b/packages/pl-api/lib/entities/notification.ts index fc6dedbe8..8f778069b 100644 --- a/packages/pl-api/lib/entities/notification.ts +++ b/packages/pl-api/lib/entities/notification.ts @@ -101,6 +101,8 @@ const notificationSchema: v.BaseSchema> ...notification, type: notification.type === 'pleroma:report' ? 'admin.report' + : notification.type === 'reaction' + ? 'emoji_reaction' : notification.type?.replace(/^pleroma:/, ''), })), v.variant('type', [ diff --git a/packages/pl-fe/src/actions/notifications.ts b/packages/pl-fe/src/actions/notifications.ts index 8f5640c69..e06f52f1a 100644 --- a/packages/pl-fe/src/actions/notifications.ts +++ b/packages/pl-fe/src/actions/notifications.ts @@ -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'], diff --git a/packages/pl-fe/src/utils/notification.ts b/packages/pl-fe/src/utils/notification.ts index 365810cf5..fb7521536 100644 --- a/packages/pl-fe/src/utils/notification.ts +++ b/packages/pl-fe/src/utils/notification.ts @@ -12,6 +12,7 @@ const NOTIFICATION_TYPES = [ 'move', 'chat_mention', 'emoji_reaction', + 'reaction', 'update', 'event_reminder', 'participation_request',