small bug fix?

This commit is contained in:
CatAClock 2025-05-13 15:23:43 -07:00
parent a1b27d7549
commit 3d3cb1f69d
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,6 @@ export async function GetPosts(URIs) {
// Get a blob (like an image or video). Authentication need not apply.
export async function GetBlob(DID, CID) {
let PDS = localStorage.getItem(Variables.BlueskyPDS);
let request = fetch("https://bsky.social/xrpc/com.atproto.sync.getBlob?did=" + DID + "&cid=" + CID, {method: "GET"});
let body = await request.then((response) => response.json());
return body;

View file

@ -86,7 +86,8 @@ async function GetPost() {
document.getElementsByClassName("Images")[0].innerHTML = document.getElementsByClassName("Images")[0].innerHTML + "<img src=" + i.fullsize + " alt='" + i.alt + "'/>";
}
} else if (post.post.record.embed.$type == "app.bsky.embed.video") {
document.getElementsByClassName("Images")[0].innerHTML = document.getElementsByClassName("Images")[0].innerHTML + "<video controls src=" + i.fullsize + " alt='" + i.alt + "'></video>";
let i = post.post.embed.playlist;
document.getElementsByClassName("Images")[0].innerHTML = document.getElementsByClassName("Images")[0].innerHTML + "<video controls src=" + i + "></video>";
}
}
// We don't need to update the post with new information. The repos are seperate.