From 0bb4a6af50bad03a8a26737572c668253af27c49 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 3 Feb 2023 23:29:31 +0100 Subject: [PATCH] client: fix quotes with only a CW Changelog: Fixed --- packages/client/src/components/cw-button.vue | 1 + packages/client/src/components/note.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/src/components/cw-button.vue b/packages/client/src/components/cw-button.vue index 17299586c..c162f759c 100644 --- a/packages/client/src/components/cw-button.vue +++ b/packages/client/src/components/cw-button.vue @@ -26,6 +26,7 @@ const label = computed(() => { props.note.text ? [i18n.t('_cw.chars', { count: length(props.note.text) })] : [], props.note.files && props.note.files.length !== 0 ? [i18n.t('_cw.files', { count: props.note.files.length }) ] : [], props.note.poll != null ? [i18n.ts.poll] : [], + props.note.renoteId != null ? [i18n.ts.quote] : [], ] as string[][]).join(' / '); }); diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index f818f7dae..e8758329a 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -151,6 +151,7 @@ if (noteViewInterruptors.length > 0) { const isRenote = ( note.renote != null && note.text == null && + note.cw == null && note.fileIds.length === 0 && note.poll == null );