mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
refactor(socket.io): deprecate categories.getRecentReplies in favour of api.categories.getPosts
This commit is contained in:
@@ -61,6 +61,8 @@ categoriesAPI.delete = async function (caller, { cid }) {
|
||||
});
|
||||
};
|
||||
|
||||
categoriesAPI.getPosts = async (caller, { cid }) => await categories.getRecentReplies(cid, caller.uid, 0, 4);
|
||||
|
||||
categoriesAPI.getPrivileges = async (caller, { cid }) => {
|
||||
await hasAdminPrivilege(caller.uid, 'privileges');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user