Fucking syntax
This commit is contained in:
parent
fdbcf3a129
commit
b5ddb10d2b
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,7 @@ async function GetPost() {
|
||||||
async function MastodonReplylFunction(ClassName, post) {
|
async function MastodonReplylFunction(ClassName, post) {
|
||||||
let OtherPost = await MastodonAPI.GetStatus(post);
|
let OtherPost = await MastodonAPI.GetStatus(post);
|
||||||
document.getElementsByClassName("Origin " + ClassName)[0].innerHTML = website;
|
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 != "") {
|
if (OtherPost.spoiler_text != "") {
|
||||||
document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
||||||
} else {
|
} else {
|
||||||
|
@ -185,6 +185,7 @@ async function MastodonReplylFunction(ClassName, post) {
|
||||||
ApplyMedia(i, document.getElementsByClassName("Images " + ClassName)[0]);
|
ApplyMedia(i, document.getElementsByClassName("Images " + ClassName)[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return OtherPost;
|
return OtherPost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue