This commit is contained in:
Barış Soner Uşaklı
2024-03-26 10:41:29 -04:00
parent 550e522fe9
commit c2890a3e74

View File

@@ -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) {