Better way of checking tags

This commit is contained in:
CatAClock 2025-07-20 18:44:01 -07:00
parent 6bd68f6946
commit 090ca86f3e

View file

@ -36,17 +36,17 @@ async function Post() {
// Adding tags
let TempText = Text;
let Tags = TagsInputArea.value.split(";");
if (Tags.length >= 1) {
if (Tags[0] != "") {
TempText += "<br/><br/>";
}
for (let i of Tags) {
while (i[0] == " ") {
i = i.substring(1, i.length);
for (let i of Tags) {
while (i[0] == " ") {
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) {
case "Public":