mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 09:51:30 +08:00
Format username for desktop notifications (#5403)
FIX: Desktop notifications weren't formatting the username
This commit is contained in:
parent
f559275b14
commit
7a093ea5d6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user