pl-api: a potential emoji reaction notification fix
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -107,7 +107,9 @@ const notificationGroupSchema: v.BaseSchema<any, NotificationGroup, v.BaseIssue<
|
|||||||
...notification,
|
...notification,
|
||||||
type: notification.type === 'pleroma:report'
|
type: notification.type === 'pleroma:report'
|
||||||
? 'admin.report'
|
? 'admin.report'
|
||||||
: notification.type?.replace(/^pleroma:/, ''),
|
: notification.type === 'reaction'
|
||||||
|
? 'emoji_reaction'
|
||||||
|
: notification.type?.replace(/^pleroma:/, ''),
|
||||||
})),
|
})),
|
||||||
v.variant('type', [
|
v.variant('type', [
|
||||||
accountNotificationGroupSchema,
|
accountNotificationGroupSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user