From c2890a3e749f2c6b7e60dfe41e6b5f7951a50d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 26 Mar 2024 10:41:29 -0400 Subject: [PATCH] add 1 || --- src/activitypub/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 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 categories const 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) {