Fedibird compatibility, because why not

This commit is contained in:
Alex Gleason 2022-01-24 12:58:39 -06:00
parent af9b69271b
commit 9f98fcff09
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
3 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,11 @@ export function importFetchedStatus(status, idempotencyKey) {
dispatch(importFetchedStatus(status.reblog)); 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) { if (status.pleroma && status.pleroma.quote && status.pleroma.quote.id) {
dispatch(importFetchedStatus(status.pleroma.quote)); dispatch(importFetchedStatus(status.pleroma.quote));
} }

View File

@ -51,6 +51,9 @@ export function normalizeStatus(status, normalOldStatus, expandSpoilers) {
if (status.pleroma && status.pleroma.quote && status.pleroma.quote.id) { if (status.pleroma && status.pleroma.quote && status.pleroma.quote.id) {
normalStatus.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 // Only calculate these values when status first encountered

View File

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