logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 9f21eb6064c6cdc2bc8606e5d18173655797c233
parent: 00b9ba64c92715ba86d45209215694497eecefce
Author: Eugen <eugen@zeonfederated.com>
Date:   Thu,  5 Jan 2017 23:15:01 +0100

Merge pull request #415 from ineffyble/master

Prevent duplicate desktop notifications

Diffstat:

Mapp/assets/javascripts/components/actions/notifications.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx @@ -40,7 +40,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) { const title = new IntlMessageFormat(intlMessages[`notification.${notification.type}`], intlLocale).format({ name: notification.account.display_name.length > 0 ? notification.account.display_name : notification.account.username }); const body = $('<p>').html(notification.status ? notification.status.content : '').text(); - new Notification(title, { body, icon: notification.account.avatar }); + new Notification(title, { body, icon: notification.account.avatar, tag: notification.id }); } }; };