From 3772dbffc9e93801960d5333ab3623d174a701c0 Mon Sep 17 00:00:00 2001 From: CatAClock Date: Fri, 13 Jun 2025 16:34:00 -0700 Subject: [PATCH] made it make sense --- JS/account.js | 2 +- JS/expanded.js | 5 ++--- JS/index.js | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/JS/account.js b/JS/account.js index 30d9e84..c436050 100644 --- a/JS/account.js +++ b/JS/account.js @@ -86,7 +86,7 @@ async function GetAccount() { Blocking = !(Relations[0].blocking); SetFollow(); SetBlock(); - AccountName.innerHTML = post.account.username; + AccountName.innerHTML = post.account.acct; AccountDescription.innerHTML = post.account.note; AccountImage.setAttribute("src", post.account.avatar); // Build the fields diff --git a/JS/expanded.js b/JS/expanded.js index 2d49263..3c7f6eb 100644 --- a/JS/expanded.js +++ b/JS/expanded.js @@ -104,11 +104,10 @@ async function SetThreadPost(element, i) { // Functions and things. async function GetPost() { if (website == "Mastodon") { + document.getElementsByClassName("Handle Regular")[0].innerHTML = post.account.acct; // Check for a reblog. if (post.reblog != null) { - document.getElementsByClassName("Handle Regular")[0].innerHTML = post.account.username + " ( R: " + post.reblog + " )"; - } else { - document.getElementsByClassName("Handle Regular")[0].innerHTML = post.account.username; + document.getElementsByClassName("Handle Regular")[0].innerHTML += " ( R: " + post.reblog + " )"; } document.getElementsByClassName("PostText Regular")[0].innerHTML = post.content; // Set the texts. It's opposite because "setting" causes it to switch. diff --git a/JS/index.js b/JS/index.js index 167fb9c..0468882 100644 --- a/JS/index.js +++ b/JS/index.js @@ -231,7 +231,7 @@ async function PosterContainerUpdate(Direction) { // put the reblog into the regular post; Make changes as necessary. if (MastodonLoadedFeed[CurrentThing + counter].reblog != null && typeof MastodonLoadedFeed[CurrentThing + counter].reblog != "string") { // Fix a reblog issue. - let ReblogFix = MastodonLoadedFeed[CurrentThing + counter].account.username; + let ReblogFix = MastodonLoadedFeed[CurrentThing + counter].account.acct; MastodonLoadedFeed[CurrentThing + counter] = MastodonLoadedFeed[CurrentThing + counter].reblog; MastodonLoadedFeed[CurrentThing + counter].reblog = ReblogFix; i.getElementsByClassName("Username")[0].innerHTML = " ( R: " + MastodonLoadedFeed[CurrentThing + counter].reblog + " )"; @@ -239,7 +239,7 @@ async function PosterContainerUpdate(Direction) { // this function is if the changes are already made. i.getElementsByClassName("Username")[0].innerHTML = " ( R: " + MastodonLoadedFeed[CurrentThing + counter].reblog + " )"; } - i.getElementsByClassName("Username")[0].innerHTML = MastodonLoadedFeed[CurrentThing + counter].account.username + i.getElementsByClassName("Username")[0].innerHTML + i.getElementsByClassName("Username")[0].innerHTML = MastodonLoadedFeed[CurrentThing + counter].account.acct + i.getElementsByClassName("Username")[0].innerHTML // Check for images. if (MastodonLoadedFeed[CurrentThing + counter].media_attachments.length != 0) { if (MastodonLoadedFeed[CurrentThing + counter].media_attachments[0].type == "image") {