Fedibird: fall back to quote_id

This commit is contained in:
Alex Gleason 2022-01-24 13:58:52 -06:00
parent 9abeb2a324
commit 93e7efba05
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ export function normalizeStatus(status, normalOldStatus, expandSpoilers) {
} else if (status.quote && status.quote.id) {
// Fedibird compatibility, because why not
normalStatus.quote = status.quote.id;
} else if (status.quote_id) {
// Fedibird: fall back to quote_id
normalStatus.quote = status.quote_id;
}
// Only calculate these values when status first encountered