From 7a093ea5d675d36092c3baf7fcb2a7ae40d200d9 Mon Sep 17 00:00:00 2001 From: ckeboss Date: Wed, 6 Dec 2017 09:52:11 -0800 Subject: [PATCH] Format username for desktop notifications (#5403) FIX: Desktop notifications weren't formatting the username --- .../javascripts/discourse/lib/desktop-notifications.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 b/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 index ec4b4f2d22a..12c481e4afb 100644 --- a/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 +++ b/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 @@ -1,5 +1,6 @@ import DiscourseURL from 'discourse/lib/url'; import KeyValueStore from 'discourse/lib/key-value-store'; +import { formatUsername } from 'discourse/lib/utilities'; let primaryTab = false; let liveEnabled = false; @@ -104,7 +105,7 @@ function onNotification(data) { const notificationTitle = I18n.t(i18nKey(data.notification_type), { site_title: Discourse.SiteSettings.title, topic: data.topic_title, - username: data.username + username: formatUsername(data.username) }); const notificationBody = data.excerpt;