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) {
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue