chore: collapse renote of my note (#11166)

* chore(frontend): 自分のnoteのrenoteも省略するように

Co-authored-by: madorama <madorama999@gmail.com>

* docs(changelog): add 見たことのあるRenoteを省略して表示をオンのときに自分のnoteのrenoteを省略するように

---------

Co-authored-by: madorama <madorama999@gmail.com>
Cherry-picks: 2606167f0d
This commit is contained in:
anatawa12 2023-07-07 20:05:11 +09:00
parent 064e6e28b0
commit 67c80c364f
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
### Client
- deck UIのカラムのメニューからアンテナとリストの編集画面を開けるように
- 画像を動画と同様に簡単に隠せるように
- 見たことのあるRenoteを省略して表示をオンのときに自分のnoteのrenoteを省略するように
- フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように
- 引用対象を「もっと見る」で展開した場合、「閉じる」で畳めるように
- Renote時に公開範囲のデフォルト設定が適用されるように

View File

@ -222,7 +222,7 @@ const translation = ref<any>(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),