From 08184f29c19068d97968c3233d70dfd4c93ace35 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 8 Mar 2024 20:45:54 -0500 Subject: [PATCH] Revert "fix: pass proper uid to privilege check in AP note federation" This reverts commit 95427c4af71ec20712940e6e71a72315b58258c0. --- src/api/activitypub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/activitypub.js b/src/api/activitypub.js index 4c98eef56c..c816aa0f12 100644 --- a/src/api/activitypub.js +++ b/src/api/activitypub.js @@ -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;