cleanup(ApNoteService.ts)
				
					
				
			This commit is contained in:
		| @@ -178,14 +178,16 @@ export class ApNoteService { | |||||||
|  |  | ||||||
| 		// リプライ | 		// リプライ | ||||||
| 		const reply: Note | null = note.inReplyTo | 		const reply: Note | null = note.inReplyTo | ||||||
| 			? await this.resolveNote(note.inReplyTo, resolver).then(x => { | 			? await this.resolveNote(note.inReplyTo, resolver) | ||||||
|  | 				.then(x => { | ||||||
| 					if (x == null) { | 					if (x == null) { | ||||||
| 						this.logger.warn('Specified inReplyTo, but not found'); | 						this.logger.warn('Specified inReplyTo, but not found'); | ||||||
| 						throw new Error('inReplyTo not found'); | 						throw new Error('inReplyTo not found'); | ||||||
| 				} else { |  | ||||||
| 					return x; |  | ||||||
| 					} | 					} | ||||||
| 			}).catch(async err => { |  | ||||||
|  | 					return x; | ||||||
|  | 				}) | ||||||
|  | 				.catch(async err => { | ||||||
| 					this.logger.warn(`Error in inReplyTo ${note.inReplyTo} - ${err.statusCode ?? err}`); | 					this.logger.warn(`Error in inReplyTo ${note.inReplyTo} - ${err.statusCode ?? err}`); | ||||||
| 					throw err; | 					throw err; | ||||||
| 				}) | 				}) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 okayurisotto
					okayurisotto