object :/
This commit is contained in:
parent
caae945331
commit
9676704906
1 changed files with 6 additions and 7 deletions
|
@ -206,15 +206,14 @@ async function MastodonThreadFunction(Id, post) {
|
|||
}
|
||||
|
||||
async function MastodonReplyFunction(Id, post) {
|
||||
let OtherPost = await MastodonAPI.GetStatus(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/>";
|
||||
let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + post.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("beforeend", ShitHTML);
|
||||
if (OtherPost.spoiler_text != "") {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
||||
if (post.spoiler_text != "") {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + post.spoiler_text;
|
||||
} else {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = OtherPost.content;
|
||||
if (OtherPost.media_attachments.length != 0) {
|
||||
for (let i of OtherPost.media_attachments) {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = post.content;
|
||||
if (post.media_attachments.length != 0) {
|
||||
for (let i of post.media_attachments) {
|
||||
ApplyMedia(i, document.getElementsByClassName("Images " + Id));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue