random fix

This commit is contained in:
CatAClock 2025-05-27 20:04:15 -07:00
parent f03e73132a
commit 358a1b3df1
3 changed files with 2 additions and 4 deletions

View file

@ -28,6 +28,7 @@
<label>Post to Youtube</label>
</div>
<textarea cols="50" rows="1" class="Warning" placeholder="Content Warnings"></textarea>
<textarea cols="50" rows="1" class="Tags" placeholder="Tags (seperate with \";\")"></textarea>
<p class="Button">POST!</p>
</section>
<footer>

View file

@ -114,7 +114,7 @@ export async function CreateStatus(Text, SpoilerText = undefined, Visibility = "
if (status == 422) {
let matches = body.error.match(/(\d+)/);
// Get the correct fetch body.
FetchThing = localStorage.getItem(Variables.MastodonWebsite) + "/api/v1/statuses?status=" + Text.slice(0, matches[0] - 1) + "&visibility=" + Visibility
FetchThing = localStorage.getItem(Variables.MastodonWebsite) + "/api/v1/statuses?status=" + Text + "&visibility=" + Visibility
if (SpoilerText != undefined) {
FetchThing += "&spoiler_text=" + SpoilerText;
}

View file

@ -205,9 +205,6 @@ async function PosterContainerUpdate(Direction) {
if (Mastodon == false) {
countergroup = countergroup + 1;
}
if (Bluesky == false) {
countergroup = countergroup + 1;
}
// This var is meant to stop "already seen" posts.
let BlueskyPostsDup = [];
WebsiteAPIType = [];