fix: allow category controller to respond also by remote category id

This commit is contained in:
Julian Lam
2025-03-20 14:48:09 -04:00
parent 8da0413810
commit aa1ff61c06

View File

@@ -33,7 +33,10 @@ categoryController.get = async function (req, res, next) {
if (!utils.isNumber(cid)) {
const assertion = await activitypub.actors.assertGroup([cid]);
if (!activitypub.helpers.isUri(cid)) {
cid = await db.getObjectField('handle:cid', cid);
}
if (!assertion || !cid) {
return next();
}