Skip to content

Commit

Permalink
fix: notification on group.leave incorrectly showing "Guest has left …
Browse files Browse the repository at this point in the history
…X group"
  • Loading branch information
psychobunny committed Dec 1, 2020
1 parent 2c9cd28 commit f7558c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ groupsAPI.leave = async function (caller, data) {
bodyShort: '[[groups:membership.leave.notification_title, ' + username + ', ' + groupName + ']]',
nid: 'group:' + validator.escape(groupName) + ':uid:' + data.uid + ':group-leave',
path: '/groups/' + slugify(groupName),
from: data.uid,
});
const uids = await groups.getOwners(groupName);
await notifications.push(notification, uids);
Expand Down

0 comments on commit f7558c6

Please sign in to comment.