logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 98819ae32c6f3962df955ee280cd6cc271625852
parent e2ca107e01c5a0715aa1a1a68496fe514eb9e902
Author: lain <lain@soykaf.club>
Date:   Thu, 11 Jun 2020 15:49:39 +0200

NotificationUtils: Add tag to notifications.

Diffstat:

Msrc/services/notification_utils/notification_utils.js4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js @@ -45,7 +45,9 @@ export const unseenNotificationsFromStore = store => filter(filteredNotificationsFromStore(store), ({ seen }) => !seen) export const prepareNotificationObject = (notification, i18n) => { - const notifObj = {} + const notifObj = { + tag: notification.id + } const status = notification.status const title = notification.from_profile.name notifObj.title = title