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

This commit is contained in:
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

View file

@ -26,7 +26,7 @@ const props = withDefaults(
const userSettings = useUserSettings() const userSettings = useUserSettings()
const status = $computed(() => { 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.reblog
return props.status return props.status
}) })