about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-01-05 23:15:01 +0100
committerGitHub <noreply@github.com>2017-01-05 23:15:01 +0100
commit9f21eb6064c6cdc2bc8606e5d18173655797c233 (patch)
treef6f225f7ebb6660601c090d7f2adc2fef9cad890 /app
parent00b9ba64c92715ba86d45209215694497eecefce (diff)
parent10a9ebae3b2fc0addb4604798a62d6c4e066d491 (diff)
Merge pull request #415 from ineffyble/master
Prevent duplicate desktop notifications
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/components/actions/notifications.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx
index 8bd835406..182b598aa 100644
--- 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 });
     }
   };
 };