Fedibird compatibility, because why not

merge-requests/1002/head
Alex Gleason 3 years ago
parent af9b69271b
commit 9f98fcff09
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -75,6 +75,11 @@ export function importFetchedStatus(status, idempotencyKey) {
dispatch(importFetchedStatus(status.reblog));
}
// Fedibird quotes
if (status.quote && status.quote.id) {
dispatch(importFetchedStatus(status.quote));
}
if (status.pleroma && status.pleroma.quote && status.pleroma.quote.id) {
dispatch(importFetchedStatus(status.pleroma.quote));
}

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

@ -816,3 +816,11 @@ a.status-card.compact:hover {
margin-top: 5px !important;
}
}
/* Fedibird quote post compatibility */
.status__content,
.quoted-status__content {
.quote-inline {
display: none;
}
}

Loading…
Cancel
Save