Allow to post new discussions

This commit is contained in:
dtonon 2026-04-09 16:28:01 +01:00
parent 3fe32d8d24
commit b5b2f97d35
9 changed files with 673 additions and 0 deletions

View file

@ -3,6 +3,8 @@ import {
PUBLIC_GROUP_ID,
PUBLIC_MODE,
PUBLIC_JOINCODE,
PUBLIC_LABELS,
PUBLIC_BLOSSOM_URL,
} from "$env/static/public";
export const RELAY_URL = PUBLIC_RELAY_URL;
@ -10,3 +12,8 @@ export const GROUP_ID = PUBLIC_GROUP_ID;
export const MODE: "simple" | "full" =
PUBLIC_MODE === "full" ? "full" : "simple";
export const JOINCODE_REQUIRED = PUBLIC_JOINCODE === "yes";
export const LABELS = (PUBLIC_LABELS ?? "")
.split(",")
.map((l) => l.trim())
.filter(Boolean);
export const BLOSSOM_URL = (PUBLIC_BLOSSOM_URL ?? "").replace(/\/$/, "");