mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #8768
This commit is contained in:
@@ -112,7 +112,7 @@ Groups.leave = async (req, res) => {
|
|||||||
const username = await user.getUserField(req.params.uid, 'username');
|
const username = await user.getUserField(req.params.uid, 'username');
|
||||||
const notification = await notifications.create({
|
const notification = await notifications.create({
|
||||||
type: 'group-leave',
|
type: 'group-leave',
|
||||||
bodyShort: '[[groups:membership.leave.notification-title, ' + username + ', ' + group.name + ']]',
|
bodyShort: '[[groups:membership.leave.notification_title, ' + username + ', ' + group.name + ']]',
|
||||||
nid: 'group:' + validator.escape(group.name) + ':uid:' + req.params.uid + ':group-leave',
|
nid: 'group:' + validator.escape(group.name) + ':uid:' + req.params.uid + ':group-leave',
|
||||||
path: '/groups/' + slugify(group.name),
|
path: '/groups/' + slugify(group.name),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user