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

zio/stable
Kingsley Yung 2023-02-05 23:12:49 +08:00 committed by GitHub
parent 0fbe34c1e8
commit 297b104e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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