add: "town square" community option
with a town square community, users can post directly from their profiles!
This commit is contained in:
parent
ca0c4b9e0b
commit
48e0b02198
7 changed files with 90 additions and 9 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue