diff --git a/src/HTTP/JS/expanded.js b/src/HTTP/JS/expanded.js
index c4c5705..f60b3c4 100644
--- a/src/HTTP/JS/expanded.js
+++ b/src/HTTP/JS/expanded.js
@@ -156,7 +156,7 @@ async function GetPost() {
let NumberOfThreads = 0;
let TemporaryPost = post;
while (TemporaryPost.reply.parent != null) {
- TemporaryPost = await BlueskyReplyFunction("0", TemporaryPost.reply.parent, TemporaryPost.reply.parent.author).posts[0];
+ TemporaryPost = await BlueskyReplyFunction("0", TemporaryPost.reply.parent, TemporaryPost.reply.parent.author);
ThreadedPost.push(TemporaryPost);
// Any replies? Give them the thing :3
for (let i of document.getElementsByClassName(NumberOfThreads)) {
@@ -190,23 +190,24 @@ async function MastodonReplylFunction(Id, post) {
return OtherPost;
}
-async function BlueskyReplyFunction(Id, post, OtherAuthor) {
+async function BlueskyReplyFunction(Id, post) {
let OtherPost = await BlueskyAPI.GetPosts([post.uri]);
+ OtherPost = OtherPost.posts[0];
console.log(OtherPost);
- let ShitHTML = " " + OtherAuthor.handle + "
" + website + "
";
+ let ShitHTML = " " + Id.author.handle + "
" + website + "
";
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
- Text = BlueskyAPI.ApplyFacets(OtherPost.value, OtherPost.value.text);
+ Text = BlueskyAPI.ApplyFacets(OtherPost.record, OtherPost.record.text);
Text = Text.replace(/\r?\n|\r/g, "
");
// Sensitive topic :3
- if (OtherPost.value.hasOwnProperty("labels") && OtherPost.value.labels.length != 0) {
- document.getElementsByClassName("PostText " + ClassName)[0].innerHTML = "LABELS APPLIED: ";
+ if (OtherPost.record.hasOwnProperty("labels") && OtherPost.record.labels.length != 0) {
+ document.getElementsByClassName("PostText " + Id)[0].innerHTML = "LABELS APPLIED: ";
for (let lab of OtherPost.value.labels.values) {
document.getElementsByClassName("PostText " + Id)[0].innerHTML += lab.val + " ";
}
} else {
document.getElementsByClassName("PostText " + Id)[0].innerHTML = Text;
- if (OtherPost.value.hasOwnProperty("embed")) {
- ApplyMedia(OtherPost.value.embed, document.getElementsByClassName("Images " + Id)[0], OtherAuthor.did);
+ if (OtherPost.record.hasOwnProperty("embed")) {
+ ApplyMedia(OtherPost.record.embed, document.getElementsByClassName("Images " + Id)[0], Id.author.did);
}
}
return OtherPost;