diff --git a/src/HTTP/JS/expanded.js b/src/HTTP/JS/expanded.js index 9f726ac..781b80c 100644 --- a/src/HTTP/JS/expanded.js +++ b/src/HTTP/JS/expanded.js @@ -206,15 +206,14 @@ async function MastodonThreadFunction(Id, post) { } async function MastodonReplyFunction(Id, post) { - let OtherPost = await MastodonAPI.GetStatus(post); - let ShitHTML = "

" + OtherPost.account.acct + "

" + website + "


"; + let ShitHTML = "

" + post.account.acct + "

" + website + "


"; document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend", ShitHTML); - if (OtherPost.spoiler_text != "") { - document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text; + if (post.spoiler_text != "") { + document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + post.spoiler_text; } else { - document.getElementsByClassName("PostText " + Id)[0].innerHTML = OtherPost.content; - if (OtherPost.media_attachments.length != 0) { - for (let i of OtherPost.media_attachments) { + document.getElementsByClassName("PostText " + Id)[0].innerHTML = post.content; + if (post.media_attachments.length != 0) { + for (let i of post.media_attachments) { ApplyMedia(i, document.getElementsByClassName("Images " + Id)); } }