fix: repeated content on reblog without comment (re-open) (#1627)

pull/1469/head
Kingsley Yung 2023-02-05 23:12:49 +08:00 zatwierdzone przez GitHub
rodzic 0fbe34c1e8
commit 297b104e1c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ const props = withDefaults(
const userSettings = useUserSettings()
const status = $computed(() => {
if (props.status.reblog && !props.status.content)
if (props.status.reblog && (!props.status.content || props.status.content === props.status.reblog.content))
return props.status.reblog
return props.status
})