Merge branch 'reblog-quotes' into 'develop'

Properly import quotes from reblogs

See merge request soapbox-pub/soapbox-fe!1515
This commit is contained in:
Alex Gleason 2022-06-09 19:39:50 +00:00
commit 0f339279fa

View file

@ -69,10 +69,21 @@ export function importFetchedStatus(status, idempotencyKey) {
dispatch(importFetchedStatus(status.quote));
}
// Pleroma quotes
if (status.pleroma?.quote?.id) {
dispatch(importFetchedStatus(status.pleroma.quote));
}
// Fedibird quote from reblog
if (status.reblog?.quote?.id) {
dispatch(importFetchedStatus(status.reblog.quote));
}
// Pleroma quote from reblog
if (status.reblog?.pleroma?.quote?.id) {
dispatch(importFetchedStatus(status.reblog.pleroma.quote));
}
if (status.poll?.id) {
dispatch(importFetchedPoll(status.poll));
}