Node.js based forum software built for the modern web
Revert "add 1 ||"
Julian Lam5efe8abd1553
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 94ace37844..6c1397d304 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 = 1 || options.skipChecks || hasTid || await assertRelation(chain[0]);+ const hasRelation = options.skipChecks || hasTid || await assertRelation(chain[0]);const allowed = await privileges.categories.can(privilege, cid, activitypub._constants.uid);if (!hasRelation || !allowed) {if (!hasRelation) {