quick changes to get it to maybe work?
This commit is contained in:
parent
3b6145c621
commit
cb8ab08edb
2 changed files with 2 additions and 3 deletions
|
@ -213,7 +213,7 @@ export async function CreatePost(DID, Text, ContentWarning = undefined, Tags = [
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"$type": "app.bsky.richtext.facet#tag",
|
"$type": "app.bsky.richtext.facet#tag",
|
||||||
"tag": i;
|
"tag": i
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ async function Post() {
|
||||||
}
|
}
|
||||||
// Bluesky posting.
|
// Bluesky posting.
|
||||||
if (localStorage.getItem(Variables.BlueskyAccessToken) != null) {
|
if (localStorage.getItem(Variables.BlueskyAccessToken) != null) {
|
||||||
|
let Post;
|
||||||
let TempVisible;
|
let TempVisible;
|
||||||
// Adding tags
|
// Adding tags
|
||||||
let Tags = TagsInputArea.value.split(";");
|
let Tags = TagsInputArea.value.split(";");
|
||||||
|
@ -111,7 +112,6 @@ async function Post() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (website == "Bluesky") {
|
if (website == "Bluesky") {
|
||||||
let Post;
|
|
||||||
if (JSON.parse(localStorage.getItem("post")).hasOwnProperty("reply")) {
|
if (JSON.parse(localStorage.getItem("post")).hasOwnProperty("reply")) {
|
||||||
if (WarningInputArea.value == "") {
|
if (WarningInputArea.value == "") {
|
||||||
Post = await BlueskyAPI.CreatePost(localStorage.getItem(Variables.BlueskyDID), Text, undefined, Tags, JSON.parse(localStorage.getItem("post")).post, JSON.parse(localStorage.getItem("post")).reply.root);
|
Post = await BlueskyAPI.CreatePost(localStorage.getItem(Variables.BlueskyDID), Text, undefined, Tags, JSON.parse(localStorage.getItem("post")).post, JSON.parse(localStorage.getItem("post")).reply.root);
|
||||||
|
@ -132,7 +132,6 @@ async function Post() {
|
||||||
TagsInputArea.value = "";
|
TagsInputArea.value = "";
|
||||||
return;
|
return;
|
||||||
} else if (website == "All") {
|
} else if (website == "All") {
|
||||||
let Post;
|
|
||||||
if (WarningInputArea.value == "") {
|
if (WarningInputArea.value == "") {
|
||||||
Post = await BlueskyAPI.CreatePost(localStorage.getItem(Variables.BlueskyDID), Text, undefined, Tags);
|
Post = await BlueskyAPI.CreatePost(localStorage.getItem(Variables.BlueskyDID), Text, undefined, Tags);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue