From 5fde0c9186d2f65ba33965796f68d61cee0c72cd Mon Sep 17 00:00:00 2001 From: NoriDev Date: Fri, 1 Dec 2023 17:27:54 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20InstanceTicker=EB=A5=BC=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=ED=95=B4=20=EB=85=B8=ED=8A=B8=EB=A5=BC=20=EC=9E=90?= =?UTF-8?q?=EC=84=B8=ED=9E=88=20=EB=B3=BC=20=EC=88=98=20=EC=9E=88=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 2 ++ packages/frontend/src/components/MkNoteHeader.vue | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index baf5fbaba1..46fc22c42e 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -46,6 +46,8 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE ### Client - Feat: 데이터 절약 모드로 코드 하이라이트 로드를 줄일 수 있음 (misskey-dev/misskey#12526) +- Feat: InstanceTicker를 클릭해 노트를 자세히 볼 수 있음 + - 리모트에서 수신된 노트인 경우, '리모트에서 보기'로 작동함 - Enhance: 사운드 설정을 기본값으로 복원하거나 저장할 때 확실하게 표시함 - Enhance: 리모트 서버와 동일한 이모지가 존재하지 않는 경우 '이모지 복사'를 비활성화함 - Enhance: 아이콘 장식을 바로 업로드 하거나 드라이브에서 불러올 수 있음 ([Secineralyr/misskey.dream@e358212d](https://github.com/Secineralyr/misskey.dream/commit/e358212da93256749e31d9e0ca9dd2ed37fd548e), [Secineralyr/misskey.dream@52592fea](https://github.com/Secineralyr/misskey.dream/commit/52592fea52684497ba7e07f173aac2b1083afcb1)) diff --git a/packages/frontend/src/components/MkNoteHeader.vue b/packages/frontend/src/components/MkNoteHeader.vue index 71cedee956..ae5e56db3c 100644 --- a/packages/frontend/src/components/MkNoteHeader.vue +++ b/packages/frontend/src/components/MkNoteHeader.vue @@ -43,7 +43,7 @@ SPDX-License-Identifier: AGPL-3.0-only -
+
@@ -56,6 +56,7 @@ import { notePage } from '@/filters/note.js'; import { userPage } from '@/filters/user.js'; import { defaultStore } from '@/store.js'; import { deepClone } from '@/scripts/clone.js'; +import { useRouter } from '@/router.js'; import MkInstanceTicker from '@/components/MkInstanceTicker.vue'; const props = defineProps<{ @@ -66,6 +67,13 @@ const mock = inject('mock', false); let note = $ref(deepClone(props.note)); const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && note.user.instance); +const router = useRouter(); + +function showOnRemote() { + if (props.note.url ?? props.note.uri === undefined) router.push(notePage(note)); + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + else window.open(props.note.url ?? props.note.uri); +}