diff --git a/packages/client/src/components/MkInstanceTicker.vue b/packages/client/src/components/MkInstanceTicker.vue index 6bd87201b9..213cd3f270 100644 --- a/packages/client/src/components/MkInstanceTicker.vue +++ b/packages/client/src/components/MkInstanceTicker.vue @@ -4,6 +4,7 @@ v-tooltip="capitalize(instance.softwareName)" class="hpaizdrt" :style="bg" + @click.stop="os.pageWindow(instanceInfoUrl)" > {{ instance.name }} @@ -16,6 +17,7 @@ import { ref } from "vue"; 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?: { @@ -24,6 +26,7 @@ const props = defineProps<{ themeColor?: string; softwareName?: string; }; + host: string | null; }>(); const ticker = ref(null); @@ -40,6 +43,9 @@ const instance = props.instance ?? { softwareName: Instance.softwareName ?? "Firefish", }; +const instanceInfoUrl = + props.host == null ? "/about" : `/instance-info/${props.host}`; + const commonNames = new Map([ ["birdsitelive", "BirdsiteLIVE"], ["bookwyrm", "BookWyrm"], diff --git a/packages/client/src/components/MkNoteHeader.vue b/packages/client/src/components/MkNoteHeader.vue index c3429bddff..0ee93a0926 100644 --- a/packages/client/src/components/MkNoteHeader.vue +++ b/packages/client/src/components/MkNoteHeader.vue @@ -40,6 +40,7 @@ v-if="showTicker" class="ticker" :instance="note.user.instance" + :host="note.user.host" />