Revert "fix: pass proper uid to privilege check in AP note federation"

This reverts commit 95427c4af7.
This commit is contained in:
Julian Lam
2024-03-08 20:45:54 -05:00
parent 00101d9e29
commit 08184f29c1

View File

@@ -86,7 +86,7 @@ activitypubApi.create.post = enabledCheck(async (caller, { pid }) => {
return;
}
const allowed = await privileges.posts.can('topics:read', pid, caller.uid);
const allowed = await privileges.posts.can('topics:read', pid, activitypub._constants.uid);
if (!allowed) {
winston.verbose(`[activitypub/api] Not federating creation of pid ${pid} to the fediverse due to privileges.`);
return;