From d02e104fbf4b760ba96c562495ebd04f6dc8c3ae Mon Sep 17 00:00:00 2001 From: CatAClock Date: Sat, 28 Jun 2025 19:24:01 -0700 Subject: [PATCH] fixed two bugs: Warning messages still popped up images & The full account name wasn't visible in threads --- JS/expanded.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/JS/expanded.js b/JS/expanded.js index 3c7f6eb..86aa9db 100644 --- a/JS/expanded.js +++ b/JS/expanded.js @@ -175,15 +175,14 @@ async function GetPost() { async function MastodonReplylFunction(ClassName, post) { let OtherPost = await MastodonAPI.GetStatus(post); document.getElementsByClassName("Origin " + ClassName)[0].innerHTML = website; - document.getElementsByClassName("Handle " + ClassName)[0].innerHTML = OtherPost.account.username; + document.getElementsByClassName("Handle " + ClassName)[0].innerHTML = post.account.acct; if (OtherPost.spoiler_text != "") { document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text; } else { document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = OtherPost.content; - } - if (OtherPost.media_attachments.length != 0) { - for (let i of OtherPost.media_attachments) { - ApplyMedia(i, document.getElementsByClassName("Images " + ClassName)[0]); + if (OtherPost.media_attachments.length != 0) { + for (let i of OtherPost.media_attachments) { + ApplyMedia(i, document.getElementsByClassName("Images " + ClassName)[0]); } } return OtherPost;