From 7c08ea32324fe832ac333eee1641c599362a3fc8 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sun, 30 Apr 2023 17:06:43 -0400 Subject: [PATCH] fix meta fetch --- packages/client/src/pages/instance-info.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 7aeb2cd1c..15c853078 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -337,7 +337,7 @@ import { watch } from "vue"; import { Virtual } from "swiper"; import { Swiper, SwiperSlide } from "swiper/vue"; -import type * as misskey from "calckey-js"; +import type * as calckey from "calckey-js"; import MkChart from "@/components/MkChart.vue"; import MkObjectView from "@/components/MkObjectView.vue"; import FormLink from "@/components/form/link.vue"; @@ -360,11 +360,11 @@ import "swiper/scss"; import "swiper/scss/virtual"; import { getProxiedImageUrlNullable } from "@/scripts/media-proxy"; -type AugmentedInstanceMetadata = misskey.entities.DetailedInstanceMetadata & { +type AugmentedInstanceMetadata = calckey.entities.DetailedInstanceMetadata & { blockedHosts: string[]; silencedHosts: string[]; }; -type AugmentedInstance = misskey.entities.Instance & { +type AugmentedInstance = calckey.entities.Instance & { isBlocked: boolean; isSilenced: boolean; }; @@ -397,11 +397,8 @@ const usersPagination = { offsetMode: true, }; -async function init() { - meta = (await os.api("admin/meta")) as AugmentedInstanceMetadata; -} - async function fetch() { + meta = (await os.api("admin/meta")) as AugmentedInstanceMetadata; instance = (await os.api("federation/show-instance", { host: props.host, })) as AugmentedInstance;