mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	fix: accidental sending of Set to ActivityPub.send
This commit is contained in:
		@@ -397,7 +397,7 @@ activitypubApi.add = enabledCheck((async (_, { pid }) => {
 | 
			
		||||
	let targets;
 | 
			
		||||
	({ to, cc, targets } = await activitypub.buildRecipients({ to, cc }, { pid: localId || pid, cid }));
 | 
			
		||||
 | 
			
		||||
	await activitypub.send('cid', cid, targets, {
 | 
			
		||||
	await activitypub.send('cid', cid, Array.from(targets), {
 | 
			
		||||
		id: `${nconf.get('url')}/post/${encodeURIComponent(localId || pid)}#activity/add/${Date.now()}`,
 | 
			
		||||
		type: 'Add',
 | 
			
		||||
		to,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user