Compare commits
2 commits
main
...
FurtherDev
Author | SHA1 | Date | |
---|---|---|---|
ace2b8a3d0 | |||
090ca86f3e |
2 changed files with 11 additions and 11 deletions
|
@ -162,7 +162,7 @@ async function PosterContainerUpdate(Direction) {
|
||||||
|
|
||||||
// Mastodon gaining of timeline.
|
// Mastodon gaining of timeline.
|
||||||
if (localStorage.getItem(Variables.MastodonWebsite) == null) {
|
if (localStorage.getItem(Variables.MastodonWebsite) == null) {
|
||||||
console.log("No Mastodon instance. multiplying mastodon posts by 2...");
|
console.log("No Mastodon instance. multiplying posts by 2...");
|
||||||
Lim = Lim * 2;
|
Lim = Lim * 2;
|
||||||
Mastodon = false;
|
Mastodon = false;
|
||||||
} else if (MastodonLoadedFeed == 0) {
|
} else if (MastodonLoadedFeed == 0) {
|
||||||
|
@ -179,7 +179,7 @@ async function PosterContainerUpdate(Direction) {
|
||||||
}
|
}
|
||||||
// Bluesky gaining of timeline.
|
// Bluesky gaining of timeline.
|
||||||
if (localStorage.getItem(Variables.BlueskyPDS) == null) {
|
if (localStorage.getItem(Variables.BlueskyPDS) == null) {
|
||||||
console.log("No Bluesky instance. multiplying mastodon posts by 2...");
|
console.log("No Bluesky instance. multiplying posts by 2...");
|
||||||
Lim = Lim * 2;
|
Lim = Lim * 2;
|
||||||
Bluesky = false;
|
Bluesky = false;
|
||||||
} else if (BlueskyLoadedFeed.length == 0) {
|
} else if (BlueskyLoadedFeed.length == 0) {
|
||||||
|
|
|
@ -36,17 +36,17 @@ async function Post() {
|
||||||
// Adding tags
|
// Adding tags
|
||||||
let TempText = Text;
|
let TempText = Text;
|
||||||
let Tags = TagsInputArea.value.split(";");
|
let Tags = TagsInputArea.value.split(";");
|
||||||
if (Tags.length >= 1) {
|
if (Tags[0] != "") {
|
||||||
TempText += "<br/><br/>";
|
TempText += "<br/><br/>";
|
||||||
}
|
for (let i of Tags) {
|
||||||
for (let i of Tags) {
|
while (i[0] == " ") {
|
||||||
while (i[0] == " ") {
|
i = i.substring(1, i.length);
|
||||||
i = i.substring(1, i.length);
|
}
|
||||||
|
if (i[0] != "#" && i.length != 0) {
|
||||||
|
i = "#" + i;
|
||||||
|
}
|
||||||
|
TempText += i + " ";
|
||||||
}
|
}
|
||||||
if (i[0] != "#" && i.length != 0) {
|
|
||||||
i = "#" + i;
|
|
||||||
}
|
|
||||||
TempText += i + " ";
|
|
||||||
}
|
}
|
||||||
switch(Visible) {
|
switch(Visible) {
|
||||||
case "Public":
|
case "Public":
|
||||||
|
|
Loading…
Add table
Reference in a new issue