mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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;
|
memberStop = memberStart + countToReturn - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
returnUsers = countToReturn > 0 ? returnUsers.slice(0, countToReturn) : returnUsers;
|
||||||
return 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) {
|
Groups.getByGroupslug = async function (slug, options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user