[Glitch] Add in-app notifications for moderation actions/warnings

Port 4ef0b48b95 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2024-04-25 19:26:05 +02:00
parent 8dbcf8a287
commit aac59a34ed
4 changed files with 106 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export const notificationToMap = (notification, markForDelete = false) => Immuta
status: notification.status ? notification.status.id : null,
report: notification.report ? fromJS(notification.report) : null,
event: notification.event ? fromJS(notification.event) : null,
moderation_warning: notification.moderation_warning ? fromJS(notification.moderation_warning) : null,
});
const normalizeNotification = (state, notification, usePendingItems) => {