diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2024-02-02 11:24:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-02 11:24:20 +0900 |
| commit | 07dc99d19717e28d19fbb2335797884be1c6522f (patch) | |
| tree | ad36aaf48723f3641110a3f1d9423250f63190c3 | |
| parent | chore(deps): bump peter-evans/slash-command-dispatch from 3 to 4 (#13124) (diff) | |
| download | misskey-07dc99d19717e28d19fbb2335797884be1c6522f.tar.gz misskey-07dc99d19717e28d19fbb2335797884be1c6522f.tar.bz2 misskey-07dc99d19717e28d19fbb2335797884be1c6522f.zip | |
「見たことのあるリノートを省略して表示」が効いていない問題を修正 (#13133)
* fix: 「見たことのあるリノートを省略して表示」が効いていない問題を修正
fix #13131
* add a comment
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 7ed8e51d39..735ec86564 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -263,7 +263,12 @@ const translation = ref<Misskey.entities.NotesTranslateResponse | null>(null); const translating = ref(false); const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance); const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id)); -const renoteCollapsed = ref(defaultStore.state.collapseRenotes && isRenote && (($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) ?? (appearNote.value.myReaction != null))); +const renoteCollapsed = ref( + defaultStore.state.collapseRenotes && isRenote && ( + ($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131 + (appearNote.value.myReaction != null) + ) +); /* Overload FunctionにLintが対応していないのでコメントアウト function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly: true): boolean; |