cleanup(ApNoteService.ts)
				
					
				
			This commit is contained in:
		| @@ -178,17 +178,19 @@ 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) | ||||||
| 				if (x == null) { | 				.then(x => { | ||||||
| 					this.logger.warn('Specified inReplyTo, but not found'); | 					if (x == null) { | ||||||
| 					throw new Error('inReplyTo not found'); | 						this.logger.warn('Specified inReplyTo, but not found'); | ||||||
| 				} else { | 						throw new Error('inReplyTo not found'); | ||||||
|  | 					} | ||||||
|  |  | ||||||
| 					return x; | 					return x; | ||||||
| 				} | 				}) | ||||||
| 			}).catch(async err => { | 				.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; | ||||||
| 			}) | 				}) | ||||||
| 			: null; | 			: null; | ||||||
|  |  | ||||||
| 		// 引用 | 		// 引用 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 okayurisotto
					okayurisotto