From adef61672c55a59d386dbe9053a54561cee68013 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 17 Jul 2019 17:00:43 +0200 Subject: [PATCH] Fix translation key --- www/common/notifications.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/notifications.js b/www/common/notifications.js index 7ab504fb6..7a90b2e0c 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -126,17 +126,18 @@ define([ var link = h('a', { href: '#' }, Messages.requestEdit_viewPad); - var verified = h('p.cp-notifications-requestedit-verified'); + var verified = h('p'); var $verified = $(verified); if (priv.friends && priv.friends[msg.author]) { + $verified.addClass('cp-notifications-requestedit-verified'); var f = priv.friends[msg.author]; $verified.append(h('span.fa.fa-certificate')); var $avatar = $(h('span.cp-avatar')).appendTo($verified); $verified.append(h('p', Messages._getKey('requestEdit_fromFriend', [f.displayName]))); common.displayAvatar($avatar, f.avatar, f.displayName); } else { - $verified.append(Messages.requestEdit_fromStranger); + $verified.append(Messages._getKey('requestEdit_fromStranger', [msg.content.user.displayName])); } var div = h('div', [