mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add icon to invite/accept notifs
https://github.com/NodeBB/NodeBB/issues/11864
This commit is contained in:
@@ -45,6 +45,7 @@ module.exports = function (Groups) {
|
||||
bodyShort: `[[groups:membership.accept.notification_title, ${groupName}]]`,
|
||||
nid: `group:${groupName}:uid:${uid}:invite-accepted`,
|
||||
path: `/groups/${slugify(groupName)}`,
|
||||
icon: 'fa-users',
|
||||
});
|
||||
await notifications.push(notification, [uid]);
|
||||
};
|
||||
@@ -68,6 +69,7 @@ module.exports = function (Groups) {
|
||||
bodyLong: '',
|
||||
nid: `group:${groupName}:uid:${uid}:invite`,
|
||||
path: `/groups/${slugify(groupName)}`,
|
||||
icon: 'fa-users',
|
||||
})));
|
||||
|
||||
await Promise.all(uids.map((uid, index) => notifications.push(notificationData[index], uid)));
|
||||
|
||||
Reference in New Issue
Block a user