This commit is contained in:
CatAClock 2025-07-16 19:03:21 -07:00
parent 22b250daa7
commit b7efe26143

View file

@ -111,26 +111,18 @@ async function GetPost() {
}
// Now time to see if there are any parents
let NumberOfThreads = 0;
if (post.in_reply_to_id != null) {
let TemporaryPost = await MastodonReplylFunction(NumberOfThreads, post.in_reply_to_id);
let TemporaryPost = post;
while (TemporaryPost.in_reply_to_id != null) {
TemporaryPost = await MastodonReplylFunction(NumberOfThreads, TemporaryPost.in_reply_to_id);
ThreadedPost.push(TemporaryPost);
NumberOfThreads += 1;
// Now time to see if there are any grandparents
while (TemporaryPost.in_reply_to_id != null) {
TemporaryPost = await MastodonReplylFunction(NumberOfThreads, TemporaryPost.in_reply_to_id);
ThreadedPost.push(TemporaryPost);
NumberOfThreads += 1;
}
}
// Any replies? Give them the thing :3
let TempID = 0;
while (TempID != (NumberOfThreads - 1)) {
// Any replies? Give them the thing :3
for (let i of document.getElementsByClassName(NumberOfThreads)) {
let TempID = NumberOfThreads;
i.onclick = (event) => {
SetThreadPost(ThreadedPost[TempID], i);
}
}
TempID += 1;
NumberOfThreads += 1;
}
} else if (website == "Bluesky") {
// Check for a reblog.