This commit is contained in:
parent
7058cfa1cf
commit
dd5835fb6e
3 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,7 @@ pub struct CreateCommunity {
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
pub banner: Option<String>,
|
pub banner: Option<String>,
|
||||||
pub nsfw: Option<bool>,
|
pub nsfw: Option<bool>,
|
||||||
|
pub posting_restricted_to_mods: Option<bool>,
|
||||||
pub auth: Sensitive<String>,
|
pub auth: Sensitive<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +95,7 @@ pub struct EditCommunity {
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
pub banner: Option<String>,
|
pub banner: Option<String>,
|
||||||
pub nsfw: Option<bool>,
|
pub nsfw: Option<bool>,
|
||||||
|
pub posting_restricted_to_mods: Option<bool>,
|
||||||
pub auth: Sensitive<String>,
|
pub auth: Sensitive<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ impl PerformCrud for CreateCommunity {
|
||||||
followers_url: Some(generate_followers_url(&community_actor_id)?),
|
followers_url: Some(generate_followers_url(&community_actor_id)?),
|
||||||
inbox_url: Some(generate_inbox_url(&community_actor_id)?),
|
inbox_url: Some(generate_inbox_url(&community_actor_id)?),
|
||||||
shared_inbox_url: Some(Some(generate_shared_inbox_url(&community_actor_id)?)),
|
shared_inbox_url: Some(Some(generate_shared_inbox_url(&community_actor_id)?)),
|
||||||
|
posting_restricted_to_mods: data.posting_restricted_to_mods,
|
||||||
..CommunityForm::default()
|
..CommunityForm::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ impl PerformCrud for EditCommunity {
|
||||||
icon,
|
icon,
|
||||||
banner,
|
banner,
|
||||||
nsfw: data.nsfw,
|
nsfw: data.nsfw,
|
||||||
|
posting_restricted_to_mods: data.posting_restricted_to_mods,
|
||||||
updated: Some(naive_now()),
|
updated: Some(naive_now()),
|
||||||
..CommunityForm::default()
|
..CommunityForm::default()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue