@ -102,8 +102,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
|
||||
type: notification.type === 'pleroma:report'
|
||||
? 'admin.report'
|
||||
: notification.type === 'reaction'
|
||||
? 'emoji_reaction'
|
||||
: notification.type?.replace(/^pleroma:/, ''),
|
||||
? 'emoji_reaction'
|
||||
: notification.type?.replace(/^pleroma:/, ''),
|
||||
})),
|
||||
v.variant('type', [
|
||||
accountNotificationSchema,
|
||||
|
||||
Reference in New Issue
Block a user