From c56b94ae9614d537412452948c9d4b4e1274af0c Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 12 Mar 2019 23:31:18 +0900 Subject: [PATCH] Add type annotation to avoid type error --- src/remote/activitypub/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 7078eb2ce..bd43aa890 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -116,7 +116,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false : []; // リプライ - const reply = note.inReplyTo + const reply: INote = note.inReplyTo ? await resolveNote(note.inReplyTo, resolver).catch(e => { // 4xxの場合はリプライしてないことにする if (e.statusCode >= 400 && e.statusCode < 500) {