mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	Revert "fix: pass proper uid to privilege check in AP note federation"
This reverts commit 95427c4af7.
			
			
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user