add: "town square" community option

with a town square community, users can post directly from their profiles!
This commit is contained in:
trisua 2025-04-03 20:25:00 -04:00
parent ca0c4b9e0b
commit 48e0b02198
7 changed files with 90 additions and 9 deletions

View file

@ -36,10 +36,6 @@ media_theme_pref();
(() => {
const self = reg_ns("atto");
for (const element of document.querySelectorAll('[selected="false"]')) {
element.removeAttribute("selected");
}
// init
use("me", () => {});
@ -74,6 +70,12 @@ media_theme_pref();
});
});
self.define("remove_false_options", () => {
for (const element of document.querySelectorAll('[selected="false"]')) {
element.removeAttribute("selected");
}
});
self.define("rel_date", (_, date) => {
// stolen and slightly modified because js dates suck
const diff = (new Date().getTime() - date.getTime()) / 1000;