mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 08:33:00 +00:00
Fix quote with CW but no text being shown without CW (#36150)
This commit is contained in:
parent
8a6ef2ebdf
commit
2664bb628b
|
@ -81,7 +81,7 @@ export function normalizeStatus(status, normalOldStatus) {
|
|||
} else {
|
||||
// If the status has a CW but no contents, treat the CW as if it were the
|
||||
// status' contents, to avoid having a CW toggle with seemingly no effect.
|
||||
if (normalStatus.spoiler_text && !normalStatus.content) {
|
||||
if (normalStatus.spoiler_text && !normalStatus.content && !normalStatus.quote) {
|
||||
normalStatus.content = normalStatus.spoiler_text;
|
||||
normalStatus.spoiler_text = '';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user