[Glitch] Add notifications of severed relationships

Port 44bf7b8128 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2024-03-20 16:37:21 +01:00
parent f2b23aa5f3
commit 0f966209ca
3 changed files with 91 additions and 0 deletions

View File

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