mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
This commit is contained in:
parent
7058cfa1cf
commit
dd5835fb6e
@ -34,6 +34,7 @@ pub struct CreateCommunity {
|
||||
pub icon: Option<String>,
|
||||
pub banner: Option<String>,
|
||||
pub nsfw: Option<bool>,
|
||||
pub posting_restricted_to_mods: Option<bool>,
|
||||
pub auth: Sensitive<String>,
|
||||
}
|
||||
|
||||
@ -94,6 +95,7 @@ pub struct EditCommunity {
|
||||
pub icon: Option<String>,
|
||||
pub banner: Option<String>,
|
||||
pub nsfw: Option<bool>,
|
||||
pub posting_restricted_to_mods: Option<bool>,
|
||||
pub auth: Sensitive<String>,
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,7 @@ impl PerformCrud for CreateCommunity {
|
||||
followers_url: Some(generate_followers_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)?)),
|
||||
posting_restricted_to_mods: data.posting_restricted_to_mods,
|
||||
..CommunityForm::default()
|
||||
};
|
||||
|
||||
|
@ -64,6 +64,7 @@ impl PerformCrud for EditCommunity {
|
||||
icon,
|
||||
banner,
|
||||
nsfw: data.nsfw,
|
||||
posting_restricted_to_mods: data.posting_restricted_to_mods,
|
||||
updated: Some(naive_now()),
|
||||
..CommunityForm::default()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user