mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #12736, merged notifications use username instead of displayname
This commit is contained in:
@@ -475,7 +475,7 @@ Notifications.merge = async function (notifications) {
|
|||||||
case 'notifications:user-posted-to':
|
case 'notifications:user-posted-to':
|
||||||
case 'notifications:user-flagged-post-in':
|
case 'notifications:user-flagged-post-in':
|
||||||
case 'notifications:user-flagged-user': {
|
case 'notifications:user-flagged-user': {
|
||||||
const usernames = _.uniq(set.map(notifObj => notifObj && notifObj.user && notifObj.user.username));
|
const usernames = _.uniq(set.map(notifObj => notifObj && notifObj.user && notifObj.user.displayname));
|
||||||
const numUsers = usernames.length;
|
const numUsers = usernames.length;
|
||||||
|
|
||||||
const title = utils.decodeHTMLEntities(notifications[modifyIndex].topicTitle || '');
|
const title = utils.decodeHTMLEntities(notifications[modifyIndex].topicTitle || '');
|
||||||
|
|||||||
Reference in New Issue
Block a user