?
This commit is contained in:
parent
755e4f8d9f
commit
0595ac025b
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ async function GetPost() {
|
|||
// Because of repeat code, we can put it into it's own function. Hell, more of a thread can be added later.
|
||||
async function MastodonReplylFunction(Id, post) {
|
||||
let OtherPost = await MastodonAPI.GetStatus(post);
|
||||
let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + website + "</h1> <h1 class=\"Origin " + Id + "\"> " + OtherPost.account.acct + "</h1> </header> <p class=\"PostText " + Id + "\"></p> <div class=\"Images " + Id + "\"></div> <hr/>";
|
||||
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].innerHTML = ShitHTML + document.getElementsByTagName("body")[0].innerHTML;
|
||||
if (OtherPost.spoiler_text != "") {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
||||
|
|
Loading…
Add table
Reference in a new issue