1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-04 16:09:59 +00:00

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