diff --git a/packages/client/src/components/MkInstanceTicker.vue b/packages/client/src/components/MkInstanceTicker.vue index fa036a616..6bd87201b 100644 --- a/packages/client/src/components/MkInstanceTicker.vue +++ b/packages/client/src/components/MkInstanceTicker.vue @@ -24,7 +24,6 @@ const props = defineProps<{ themeColor?: string; softwareName?: string; }; - host: string | null; }>(); const ticker = ref(null); diff --git a/packages/client/src/components/MkNoteHeader.vue b/packages/client/src/components/MkNoteHeader.vue index 2b6eb217c..f70e2476e 100644 --- a/packages/client/src/components/MkNoteHeader.vue +++ b/packages/client/src/components/MkNoteHeader.vue @@ -40,7 +40,6 @@ v-if="showTicker" class="ticker" :instance="note.user.instance" - :host="note.user.host" @click.stop="openServerInfo" /> @@ -74,15 +73,11 @@ const showTicker = note.value.user.instance); function openServerInfo() { - if ( - (props.canOpenServerInfo && !defaultStore.state.openServerInfo) || - !note.value.user.instance - ) - return; + if (!props.canOpenServerInfo || !defaultStore.state.openServerInfo) return; const instanceInfoUrl = - props.host == null + note.value.user.host == null ? "/about" - : `/instance-info/${note.value.user.instance}`; + : `/instance-info/${note.value.user.host}`; pageWindow(instanceInfoUrl); }