fix: #12736, merged notifications use username instead of displayname

This commit is contained in:
Julian Lam
2024-08-22 14:55:27 -04:00
parent fbd09b2a4f
commit ad68809bb4

View File

@@ -475,7 +475,7 @@ Notifications.merge = async function (notifications) {
case 'notifications:user-posted-to':
case 'notifications:user-flagged-post-in':
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 title = utils.decodeHTMLEntities(notifications[modifyIndex].topicTitle || '');