- let community_id = data.community_id;
- let read_community = blocking(context.pool(), move |conn| {
- Community::read(conn, community_id)
- })
- .await??;
-
- let community_form = CommunityForm {
- name: read_community.name,
- title: read_community.title,
- description: read_community.description.to_owned(),
- hidden: Some(data.hidden),
- updated: Some(naive_now()),
- ..CommunityForm::default()
- };