From 29e0af7bb8ffc69eebc886a54eaf686cad01c684 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 5 Sep 2021 00:39:23 +0900 Subject: [PATCH] =?UTF-8?q?reply,=20renote=E3=81=AB=E3=82=82=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/share.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/pages/share.vue b/src/client/pages/share.vue index 1f62527093..94b2e4ebc7 100644 --- a/src/client/pages/share.vue +++ b/src/client/pages/share.vue @@ -50,8 +50,8 @@ export default defineComponent({ title: null as string | null, initialText: null as string | null, - reply: null as any, - renote: null as any, + reply: null as Misskey.entities.Note | null, + renote: null as Misskey.entities.Note | null, visibility: null as string | null, localOnly: null as boolean | null, files: [] as Misskey.entities.DriveFile[], @@ -114,7 +114,7 @@ export default defineComponent({ } else if (replyUri) { const obj = await os.api('ap/show', { uri: replyUri - }) as any; + }); if (obj.type === 'Note') { this.reply = obj.object; } @@ -131,7 +131,7 @@ export default defineComponent({ } else if (renoteUri) { const obj = await os.api('ap/show', { uri: renoteUri - }) as any; + }); if (obj.type === 'Note') { this.renote = obj.object; }