cleanup(ApNoteService.ts)
				
					
				
			This commit is contained in:
		| @@ -204,16 +204,8 @@ export class ApNoteService { | |||||||
| 				if (!uri.match(/^https?:/)) return { status: 'permerror' }; | 				if (!uri.match(/^https?:/)) return { status: 'permerror' }; | ||||||
| 				try { | 				try { | ||||||
| 					const res = await this.resolveNote(uri); | 					const res = await this.resolveNote(uri); | ||||||
| 					if (res) { | 					if (res == null) return { status: 'permerror' }; | ||||||
| 						return { | 					return { status: 'ok', res }; | ||||||
| 							status: 'ok', |  | ||||||
| 							res, |  | ||||||
| 						}; |  | ||||||
| 					} else { |  | ||||||
| 						return { |  | ||||||
| 							status: 'permerror', |  | ||||||
| 						}; |  | ||||||
| 					} |  | ||||||
| 				} catch (e) { | 				} catch (e) { | ||||||
| 					return { | 					return { | ||||||
| 						status: (e instanceof StatusError && e.isClientError) ? 'permerror' : 'temperror', | 						status: (e instanceof StatusError && e.isClientError) ? 'permerror' : 'temperror', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 okayurisotto
					okayurisotto