mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
* feat: post auto flagging on downvotes * fix: just get one admin
This commit is contained in:
@@ -211,6 +211,10 @@ User.getAdminsandGlobalModsandModerators = async function () {
|
||||
return await User.getUsersData(_.union(...results));
|
||||
};
|
||||
|
||||
User.getFirstAdminUid = async function () {
|
||||
return (await db.getSortedSetRange('group:administrators:members', 0, 0))[0];
|
||||
};
|
||||
|
||||
User.getModeratorUids = async function () {
|
||||
const cids = await categories.getAllCidsFromSet('categories:cid');
|
||||
const uids = await categories.getModeratorUids(cids);
|
||||
|
||||
Reference in New Issue
Block a user