diff --git a/src/utils/states.js b/src/utils/states.js index 25ffb849..9f1d986a 100644 --- a/src/utils/states.js +++ b/src/utils/states.js @@ -192,19 +192,14 @@ export function saveStatus(status, instance, opts) { // THREAD TRAVERSER if (!skipThreading) { queueMicrotask(() => { - threadifyStatus(status, instance); - if (status.reblog) { - queueMicrotask(() => { - threadifyStatus(status.reblog, instance); - }); - } + threadifyStatus(status.reblog || status, instance); }); } // UNFURLER if (!skipUnfurling) { queueMicrotask(() => { - unfurlStatus(status, instance); + unfurlStatus(status.reblog || status, instance); }); } } @@ -253,10 +248,10 @@ export const threadifyStatus = rateLimit(_threadifyStatus, 100); const fauxDiv = document.createElement('div'); export function unfurlStatus(status, instance) { const { instance: currentInstance } = api(); - const content = status.reblog?.content || status.content; + const content = status?.content; const hasLink = /