Fix AP Announce detection (#2672)
This commit is contained in:
		
							parent
							
								
									424625846e
								
							
						
					
					
						commit
						ea4e2da58d
					
				
					 3 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -105,7 +105,7 @@ export default async (ctx: Router.IRouterContext) => {
 | 
			
		|||
 * @param note Note
 | 
			
		||||
 */
 | 
			
		||||
export async function packActivity(note: INote): Promise<object> {
 | 
			
		||||
	if (note.renoteId && note.text == null) {
 | 
			
		||||
	if (note.renoteId && note.text == null && note.poll == null && (note.fileIds == null || note.fileIds.length == 0)) {
 | 
			
		||||
		const renote = await Note.findOne(note.renoteId);
 | 
			
		||||
		return renderAnnounce(renote.uri ? renote.uri : `${config.url}/notes/${renote._id}`, note);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue