From 283f0b6d62c457e26f9120a51cd7c3a8519ed409 Mon Sep 17 00:00:00 2001 From: ThinaticSystem Date: Sat, 21 May 2022 06:38:15 +0900 Subject: [PATCH] refactor --- packages/client/src/components/notification.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index dd5382671..bf37442b8 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -171,7 +171,7 @@ export default defineComponent({ throw new Error("openRenoteDestination()の引数には type: 'renote' のNotificationが渡される必要があります"); } - os.api('users/show', {userId: renoteNotification.user.id}).then(user => { + os.api('users/show', {userId: renoteNotification.user.id}).then((user: misskey.entities.UserDetailed) => { if (user.host != null && user.followersCount === 0) { // リモートユーザーかつローカルの人間が誰もフォローしていない(最新の投稿が取得できない)ユーザー window.open(user.url, '_blank', 'rel="nofollow noopener"'); } else {