sforkowany z mirror/soapbox
Merge branch 'reblog-quotes' into 'develop'
Properly import quotes from reblogs See merge request soapbox-pub/soapbox-fe!1515chats-fixes
commit
0f339279fa
|
@ -69,10 +69,21 @@ export function importFetchedStatus(status, idempotencyKey) {
|
||||||
dispatch(importFetchedStatus(status.quote));
|
dispatch(importFetchedStatus(status.quote));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pleroma quotes
|
||||||
if (status.pleroma?.quote?.id) {
|
if (status.pleroma?.quote?.id) {
|
||||||
dispatch(importFetchedStatus(status.pleroma.quote));
|
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) {
|
if (status.poll?.id) {
|
||||||
dispatch(importFetchedPoll(status.poll));
|
dispatch(importFetchedPoll(status.poll));
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue