mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
Merge remote-tracking branch 'origin/develop' into activitypub
This commit is contained in:
@@ -49,7 +49,7 @@ categoriesAPI.create = async function (caller, data) {
|
||||
await hasAdminPrivilege(caller.uid);
|
||||
|
||||
const response = await categories.create(data);
|
||||
const categoryObjs = await categories.getCategories([response.cid], caller.uid);
|
||||
const categoryObjs = await categories.getCategories([response.cid]);
|
||||
return categoryObjs[0];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user