From 67c80c364fe89ef24a81f29b7f20a1d59ba60bac Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 7 Jul 2023 20:05:11 +0900 Subject: [PATCH] chore: collapse renote of my note (#11166) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(frontend): 自分のnoteのrenoteも省略するように Co-authored-by: madorama * docs(changelog): add 見たことのあるRenoteを省略して表示をオンのときに自分のnoteのrenoteを省略するように --------- Co-authored-by: madorama Cherry-picks: 2606167f0da856a200d61c0f1cecf0e02844c0f4 --- CHANGELOG.md | 1 + packages/frontend/src/components/MkNote.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf383aa224..60a9b4de2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ ### Client - deck UIのカラムのメニューからアンテナとリストの編集画面を開けるように - 画像を動画と同様に簡単に隠せるように +- 見たことのあるRenoteを省略して表示をオンのときに自分のnoteのrenoteを省略するように - フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように - 引用対象を「もっと見る」で展開した場合、「閉じる」で畳めるように - Renote時に公開範囲のデフォルト設定が適用されるように diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index a32cfe9ea9..7a7406931b 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -222,7 +222,7 @@ const translation = ref(null); const translating = ref(false); const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.user.instance); const canRenote = computed(() => ['public', 'home'].includes(appearNote.visibility) || appearNote.userId === $i.id); -let renoteCollapsed = $ref(defaultStore.state.collapseRenotes && isRenote && (($i && ($i.id === note.userId)) || (appearNote.myReaction != null))); +let renoteCollapsed = $ref(defaultStore.state.collapseRenotes && isRenote && (($i && ($i.id === note.userId || $i.id === appearNote.userId)) || (appearNote.myReaction != null))); const keymap = { 'r': () => reply(true),