From d05cabe9a8c1ef3138a89ab9ee7475538d2250c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 27 Jul 2022 23:47:16 +0200 Subject: [PATCH] Status edits notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../features/notifications/components/notification.tsx | 6 ++++++ app/soapbox/utils/notification.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/app/soapbox/features/notifications/components/notification.tsx b/app/soapbox/features/notifications/components/notification.tsx index e87b514ec..d8e02825b 100644 --- a/app/soapbox/features/notifications/components/notification.tsx +++ b/app/soapbox/features/notifications/components/notification.tsx @@ -54,6 +54,7 @@ const icons: Record = { 'pleroma:chat_mention': require('@tabler/icons/messages.svg'), 'pleroma:emoji_reaction': require('@tabler/icons/mood-happy.svg'), user_approved: require('@tabler/icons/user-plus.svg'), + update: require('@tabler/icons/pencil.svg'), }; const messages: Record = defineMessages({ @@ -101,6 +102,10 @@ const messages: Record = defineMessages({ id: 'notification.user_approved', defaultMessage: 'Welcome to {instance}!', }, + update: { + id: 'notification.update', + defaultMessage: '{name} edited a post', + }, }); const buildMessage = ( @@ -287,6 +292,7 @@ const Notification: React.FC = (props) => { case 'reblog': case 'status': case 'poll': + case 'update': case 'pleroma:emoji_reaction': return status && typeof status === 'object' ? ( // @ts-ignore diff --git a/app/soapbox/utils/notification.ts b/app/soapbox/utils/notification.ts index 635d16f29..907a97434 100644 --- a/app/soapbox/utils/notification.ts +++ b/app/soapbox/utils/notification.ts @@ -11,6 +11,7 @@ const NOTIFICATION_TYPES = [ 'pleroma:chat_mention', 'pleroma:emoji_reaction', 'user_approved', + 'update', ] as const; type NotificationType = typeof NOTIFICATION_TYPES[number];