small bug fix

This commit is contained in:
CatAClock 2025-07-17 20:00:38 -07:00
parent 7602985f7a
commit f67ecccc7d

View file

@ -209,7 +209,11 @@ async function MastodonOtherFunction(Id, post, IsThread) {
OtherPost = post;
}
let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + OtherPost.account.acct + "</h1> <h2 class=\"Origin " + Id + "\"> " + website + "</h2> </header> <p class=\"PostText " + Id + "\"></p> <div class=\"Images " + Id + "\"></div> <hr/>";
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
if (IsThread == true) {
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
} else {
document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend", ShitHTML);
}
if (OtherPost.spoiler_text != "") {
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
} else {