diff --git a/packages/client/src/components/MkInstanceTicker.vue b/packages/client/src/components/MkInstanceTicker.vue index d23ec39ef..8cdd10193 100644 --- a/packages/client/src/components/MkInstanceTicker.vue +++ b/packages/client/src/components/MkInstanceTicker.vue @@ -4,6 +4,7 @@ v-tooltip="capitalize(instance.softwareName)" ref="ticker" :style="bg" + @click.stop="os.pageWindow(instanceInfoUrl)" > {{ instance.name }} @@ -14,6 +15,7 @@ import { instanceName } from "@/config"; import { instance as Instance } from "@/instance"; import { getProxiedImageUrlNullable } from "@/scripts/media-proxy"; +import * as os from "@/os"; const props = defineProps<{ instance?: { diff --git a/packages/client/src/components/MkNoteHeader.vue b/packages/client/src/components/MkNoteHeader.vue index 877fefa58..0271c7ab0 100644 --- a/packages/client/src/components/MkNoteHeader.vue +++ b/packages/client/src/components/MkNoteHeader.vue @@ -41,7 +41,6 @@ class="ticker" :instance="note.user.instance" :host="note.user.host" - @click.stop="openServerInfo" /> @@ -57,12 +56,10 @@ import MkInstanceTicker from "@/components/MkInstanceTicker.vue"; import { notePage } from "@/filters/note"; import { userPage } from "@/filters/user"; import { i18n } from "@/i18n"; -import { pageWindow } from "@/os"; const props = defineProps<{ note: misskey.entities.Note; pinned?: boolean; - canOpenServerInfo?: boolean; }>(); let note = $ref(props.note); @@ -70,13 +67,6 @@ let note = $ref(props.note); const showTicker = defaultStore.state.instanceTicker === "always" || (defaultStore.state.instanceTicker === "remote" && note.user.instance); - -function openServerInfo() { - if (props.canOpenServerInfo && !defaultStore.state.openServerInfo || !note.value.user.instance) return; - const instanceInfoUrl = - props.host == null ? "/about" : `/instance-info/${note.value.user.instance}`; - pageWindow(instanceInfoUrl); -}