add: communities is_forum
This commit is contained in:
parent
9a128a3f0c
commit
1f545a0b21
9 changed files with 52 additions and 4 deletions
|
@ -55,6 +55,10 @@ pub async fn create_request(
|
|||
c.is_forge = true;
|
||||
c.context.enable_titles = true;
|
||||
c.context.require_titles = true;
|
||||
} else if req.forum {
|
||||
c.is_forum = true;
|
||||
c.context.enable_titles = true;
|
||||
c.context.require_titles = true;
|
||||
}
|
||||
|
||||
match data.create_community(c).await {
|
||||
|
|
|
@ -749,6 +749,8 @@ pub struct CreateCommunity {
|
|||
pub title: String,
|
||||
#[serde(default)]
|
||||
pub forge: bool,
|
||||
#[serde(default)]
|
||||
pub forum: bool,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue