✌️
This commit is contained in:
		
							parent
							
								
									bc197bc958
								
							
						
					
					
						commit
						f47377d181
					
				
					 1 changed files with 8 additions and 7 deletions
				
			
		| 
						 | 
					@ -394,13 +394,14 @@ export default async (user: IUser, data: {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//#region TODO: これ重い
 | 
							//#region TODO: これ重い
 | 
				
			||||||
		// 今までで同じ投稿をRenoteしているか
 | 
							// 今までで同じ投稿をRenoteしているか
 | 
				
			||||||
		const existRenote = await Note.findOne({
 | 
							//const existRenote = await Note.findOne({
 | 
				
			||||||
			userId: user._id,
 | 
							//	userId: user._id,
 | 
				
			||||||
			renoteId: data.renote._id,
 | 
							//	renoteId: data.renote._id,
 | 
				
			||||||
			_id: {
 | 
							//	_id: {
 | 
				
			||||||
				$ne: note._id
 | 
							//		$ne: note._id
 | 
				
			||||||
			}
 | 
							//	}
 | 
				
			||||||
		});
 | 
							//});
 | 
				
			||||||
 | 
							const existRenote = null;
 | 
				
			||||||
		//#endregion
 | 
							//#endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!existRenote) {
 | 
							if (!existRenote) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue