Merge branch 'develop' into activitypub

This commit is contained in:
Julian Lam
2024-08-22 15:06:53 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
"@isaacs/ttlcache": "1.4.1",
"@nodebb/spider-detector": "2.0.3",
"@popperjs/core": "2.11.8",
"ace-builds": "1.35.5",
"ace-builds": "1.36.0",
"archiver": "7.0.1",
"async": "3.2.6",
"autoprefixer": "10.4.20",

View File

@@ -479,7 +479,7 @@ Notifications.merge = async function (notifications) {
case 'notifications:user-flagged-post-in':
case 'notifications:user-flagged-user':
case 'notifications:activitypub.announce': {
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 || '');