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

@ -187,6 +187,12 @@ pub struct Config {
/// Configuration for Cloudflare Turnstile.
#[serde(default = "default_turnstile")]
pub turnstile: TurnstileConfig,
/// The ID of the "town square" community. This community is required to allow
/// people to post from their profiles.
///
/// This community **must** have open write access.
#[serde(default)]
pub town_square: String,
}
fn default_name() -> String {
@ -261,6 +267,7 @@ impl Default for Config {
banned_usernames: default_banned_usernames(),
policies: default_policies(),
turnstile: default_turnstile(),
town_square: String::new(),
}
}
}