Node.js based forum software built for the modern web
fix: notification on group.leave incorrectly showing "Guest has left X group"
psychobunnyf7558c605262
diff --git a/src/api/groups.js b/src/api/groups.jsindex 88d42df183..426ec1dcde 100644--- a/src/api/groups.js+++ b/src/api/groups.js@@ -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);