From 9e974161de567107ff3076e707aa3fe2bb0cac81 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sat, 21 Jan 2023 14:09:13 -0500 Subject: [PATCH] OMG FIX TICKER ISSUE i'm dumb i don't know vue okay --- packages/client/src/components/MkNoteHeader.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/MkNoteHeader.vue b/packages/client/src/components/MkNoteHeader.vue index 18b9f72846..835611a43b 100644 --- a/packages/client/src/components/MkNoteHeader.vue +++ b/packages/client/src/components/MkNoteHeader.vue @@ -30,14 +30,19 @@ import MkVisibility from '@/components/MkVisibility.vue'; import MkInstanceTicker from '@/components/MkInstanceTicker.vue'; import { notePage } from '@/filters/note'; import { userPage } from '@/filters/user'; +import { deepClone } from '@/scripts/clone'; + +const props = defineProps<{ + note: misskey.entities.Note; + pinned?: boolean; +}>(); + +let note = $ref(deepClone(props.note)); const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && note.user.instance); -defineProps<{ - note: misskey.entities.Note; - pinned?: boolean; -}>(); +