mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add filter:group.getOwnersAndMembers
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user