Browse Source

Fix empty CW when a content-less toot with a CW is encountered twice (#16220)

closed-social-v3
Claire 5 months ago
committed by GitHub
parent
commit
70f6f2e9b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/actions/importer/normalizer.js

+ 1
- 0
app/javascript/mastodon/actions/importer/normalizer.js View File

@ -60,6 +60,7 @@ export function normalizeStatus(status, normalOldStatus) {
normalStatus.search_index = normalOldStatus.get('search_index');
normalStatus.contentHtml = normalOldStatus.get('contentHtml');
normalStatus.spoilerHtml = normalOldStatus.get('spoilerHtml');
normalStatus.spoiler_text = normalOldStatus.get('spoiler_text');
normalStatus.hidden = normalOldStatus.get('hidden');
} else {
// If the status has a CW but no contents, treat the CW as if it were the

Loading…
Cancel
Save