Node.js based forum software built for the modern web
feat: add filter:group.getOwnersAndMembers
Barış Soner Uşaklıf1e82b6441b1
diff --git a/src/groups/index.js b/src/groups/index.jsindex 5c00c89d53..a6db512ef6 100644--- a/src/groups/index.js+++ b/src/groups/index.js@@ -179,8 +179,14 @@ Groups.getOwnersAndMembers = async function (groupName, uid, start, stop) {memberStop = memberStart + countToReturn - 1;}}-- return countToReturn > 0 ? returnUsers.slice(0, countToReturn) : returnUsers;+ returnUsers = countToReturn > 0 ? returnUsers.slice(0, countToReturn) : returnUsers;+ const result = await plugins.fireHook('filter:group.getOwnersAndMembers', {+ users: returnUsers,+ uid: uid,+ start: start,+ stop: stop,+ });+ return result.users;};Groups.getByGroupslug = async function (slug, options) {