feat: closes #12490, show profile flags on account info page

This commit is contained in:
Barış Soner Uşaklı
2024-04-23 12:39:51 -04:00
parent 18a843bc1e
commit b429045ff6
5 changed files with 24 additions and 27 deletions

View File

@@ -914,7 +914,7 @@ Flags.notify = async function (flagObj, uid, notifySelf = false) {
});
uids = uids.concat(modUids[0]);
} else if (flagObj.type === 'user') {
const targetDisplayname = flagObj.target && flagObj.target.user ? flagObj.target.user.displayname : '[[global:guest]]';
const targetDisplayname = flagObj.target && flagObj.target.displayname ? flagObj.target.displayname : '[[global:guest]]';
notifObj = await notifications.create({
type: 'new-user-flag',
bodyShort: `[[notifications:user-flagged-user, ${displayname}, ${targetDisplayname}]]`,