client: fix quotes with only a CW

Changelog: Fixed
This commit is contained in:
Johann150 2023-02-03 23:29:31 +01:00
parent a45908c1cb
commit 0bb4a6af50
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 2 additions and 0 deletions

View file

@ -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(' / ');
});

View file

@ -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
);