Node.js based forum software built for the modern web
add 1 ||
Barış Soner Uşaklıc2890a3e749f
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 6c1397d304..94ace37844 100644--- a/src/activitypub/notes.js+++ b/src/activitypub/notes.js@@ -77,7 +77,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {// Relation & privilege check for local categoriesconst privilege = `topics:${tid ? 'reply' : 'create'}`;- const hasRelation = options.skipChecks || hasTid || await assertRelation(chain[0]);+ const hasRelation = 1 || options.skipChecks || hasTid || await assertRelation(chain[0]);const allowed = await privileges.categories.can(privilege, cid, activitypub._constants.uid);if (!hasRelation || !allowed) {if (!hasRelation) {