Fedibird compatibility, because why not

profile-avatar-switcher
Alex Gleason 2022-01-24 12:58:39 -06:00
rodzic af9b69271b
commit 9f98fcff09
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -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));
}

Wyświetl plik

@ -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

Wyświetl plik

@ -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;
}
}