Skip to content

Node.js based forum software built for the modern web

Merge branch 'develop' into activitypub

Julian Lame9df15bbb8c4
diff --cc src/categories/index.js
index f2a3b4e7d9,5e5efd921a..e169f13469
--- a/src/categories/index.js
+++ b/src/categories/index.js
@@@ -71,13 -64,9 +71,13 @@@ Categories.getCategoryById = async func
category: category,
...data,
});
- return result.category;
+ return { ...result.category };
};
+Categories.getCidByHandle = async function (handle) {
+ return await db.sortedSetScore('categoryhandle:cid', handle);
+};
+
Categories.getAllCidsFromSet = async function (key) {
let cids = cache.get(key);
if (cids) {