mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Add type annotation to avoid type error
This commit is contained in:
parent
750db2e88a
commit
e628128987
1 changed files with 1 additions and 1 deletions
|
@ -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 => {
|
? await resolveNote(note.inReplyTo, resolver).catch(e => {
|
||||||
// 4xxの場合はリプライしてないことにする
|
// 4xxの場合はリプライしてないことにする
|
||||||
if (e.statusCode >= 400 && e.statusCode < 500) {
|
if (e.statusCode >= 400 && e.statusCode < 500) {
|
||||||
|
|
Loading…
Reference in a new issue