post is undefined?

This commit is contained in:
CatAClock 2025-07-18 10:36:12 -07:00
parent 5e3da9843e
commit fb3d3b552b
2 changed files with 2 additions and 2 deletions

View file

@ -205,7 +205,7 @@ export async function CreatePost(DID, Text, ContentWarning = undefined, Tags = [
if (AddTags == true) {
let Facets = [];
for (let i of Tags) {
let ThineIndex = tags.indexOf(i);
let ThineIndex = Tags.indexOf(i);
Facets.push({
"index": {
"byteStart": ThineIndex,

View file

@ -146,7 +146,7 @@ async function Post() {
Textures = Textures + i + " ";
}
Post = await BlueskyAPI.GetPosts([Post.uri]);
Post = Post.posts[0];
Post = await Post.posts[0];
if (Post.hasOwnProperty("reply")) {
await BlueskyAPI.CreatePost(localStorage.getItem(Variables.BlueskyDID), Textures, undefined, Tags, Post, Post.reply.root, true);
} else {