Send actor in Delete
This commit is contained in:
		
							parent
							
								
									a39aaf6eb1
								
							
						
					
					
						commit
						ac474f3884
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,4 +1,8 @@
 | 
				
			||||||
export default (object: any) => ({
 | 
					import config from '../../../config';
 | 
				
			||||||
 | 
					import { ILocalUser } from "../../../models/user";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default (object: any, user: ILocalUser) => ({
 | 
				
			||||||
	type: 'Delete',
 | 
						type: 'Delete',
 | 
				
			||||||
 | 
						actor: `${config.url}/users/${user._id}`,
 | 
				
			||||||
	object
 | 
						object
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@ export default async function(user: IUser, note: INote) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	//#region ローカルの投稿なら削除アクティビティを配送
 | 
						//#region ローカルの投稿なら削除アクティビティを配送
 | 
				
			||||||
	if (isLocalUser(user)) {
 | 
						if (isLocalUser(user)) {
 | 
				
			||||||
		const content = pack(renderDelete(await renderNote(note)));
 | 
							const content = pack(renderDelete(await renderNote(note), user));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const followings = await Following.find({
 | 
							const followings = await Following.find({
 | 
				
			||||||
			followeeId: user._id,
 | 
								followeeId: user._id,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue