feat: add icon to invite/accept notifs

https://github.com/NodeBB/NodeBB/issues/11864
isekai-main
Barış Soner Uşaklı 2 years ago
parent ad9d8f7783
commit 78c5dfdc58

@ -45,6 +45,7 @@ module.exports = function (Groups) {
bodyShort: `[[groups:membership.accept.notification_title, ${groupName}]]`, bodyShort: `[[groups:membership.accept.notification_title, ${groupName}]]`,
nid: `group:${groupName}:uid:${uid}:invite-accepted`, nid: `group:${groupName}:uid:${uid}:invite-accepted`,
path: `/groups/${slugify(groupName)}`, path: `/groups/${slugify(groupName)}`,
icon: 'fa-users',
}); });
await notifications.push(notification, [uid]); await notifications.push(notification, [uid]);
}; };
@ -68,6 +69,7 @@ module.exports = function (Groups) {
bodyLong: '', bodyLong: '',
nid: `group:${groupName}:uid:${uid}:invite`, nid: `group:${groupName}:uid:${uid}:invite`,
path: `/groups/${slugify(groupName)}`, path: `/groups/${slugify(groupName)}`,
icon: 'fa-users',
}))); })));
await Promise.all(uids.map((uid, index) => notifications.push(notificationData[index], uid))); await Promise.all(uids.map((uid, index) => notifications.push(notificationData[index], uid)));

Loading…
Cancel
Save