This commit is contained in:
CatAClock 2025-07-16 19:47:07 -07:00
parent e6dee7083b
commit e2b5c53ac5

View file

@ -74,13 +74,7 @@ for (let i of document.getElementsByClassName("Regular")) {
// Threads are the thing above the post you clicked.
async function SetThreadPost(element, i) {
if (website == "Mastodon") {
localStorage.setItem("post", JSON.stringify(element));
} else if (website == "Bluesky") {
let Temp = await BlueskyAPI.GetPosts(element.uri);
element.post = Temp.posts[0];
localStorage.setItem("post", JSON.stringify(element));
}
localStorage.setItem("post", JSON.stringify(element));
if (i.classList.contains("Handle")) {
window.location.href = "/account?website=" + website;
} else {
@ -156,7 +150,8 @@ async function GetPost() {
let NumberOfThreads = 0;
let TemporaryPost = post;
while (TemporaryPost.hasOwnProperty("reply")) {
TemporaryPost = await BlueskyReplyFunction("0", TemporaryPost.reply.parent);
console.log(TemporaryPost);
TemporaryPost = await BlueskyReplyFunction(NumberOfThreads, TemporaryPost.reply.parent);
ThreadedPost.push(TemporaryPost);
// Any replies? Give them the thing :3
for (let i of document.getElementsByClassName(NumberOfThreads)) {