Fucking syntax

This commit is contained in:
CatAClock 2025-06-30 11:09:21 -07:00
parent fdbcf3a129
commit b5ddb10d2b

View file

@ -175,7 +175,7 @@ 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 = post.account.acct;
document.getElementsByClassName("Handle " + ClassName)[0].innerHTML = OtherPost.account.acct;
if (OtherPost.spoiler_text != "") {
document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
} else {
@ -183,6 +183,7 @@ async function MastodonReplylFunction(ClassName, post) {
if (OtherPost.media_attachments.length != 0) {
for (let i of OtherPost.media_attachments) {
ApplyMedia(i, document.getElementsByClassName("Images " + ClassName)[0]);
}
}
}
return OtherPost;