diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 23:31:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 23:31:18 +0900 |
| commit | c56b94ae9614d537412452948c9d4b4e1274af0c (patch) | |
| tree | 04c201ff189c7e883615429ef8ed027e41ae10d8 /src/remote | |
| parent | Add icons :art: (diff) | |
| download | misskey-c56b94ae9614d537412452948c9d4b4e1274af0c.tar.gz misskey-c56b94ae9614d537412452948c9d4b4e1274af0c.tar.bz2 misskey-c56b94ae9614d537412452948c9d4b4e1274af0c.zip | |
Add type annotation to avoid type error
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 7078eb2ce1..bd43aa8902 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) { |