application_question: setup.application_question.to_owned(),
private_instance: setup.private_instance,
default_theme: setup.default_theme.to_owned(),
+ default_post_listing_type: setup.default_post_listing_type.to_owned(),
auth: admin_jwt,
};
create_site.perform(context, websocket_id).await?;
CommunityFollowerView::for_person(conn, person_id)
})
.await?
- .map_err(LemmyError::from)
- .map_err(|e| e.with_message("system_err_login"))?;
+ .map_err(|e| LemmyError::from_error_message(e, "system_err_login"))?;
let person_id = local_user_view.person.id;
let community_blocks = blocking(context.pool(), move |conn| {
CommunityBlockView::for_person(conn, person_id)
})
.await?
- .map_err(LemmyError::from)
- .map_err(|e| e.with_message("system_err_login"))?;
+ .map_err(|e| LemmyError::from_error_message(e, "system_err_login"))?;
let person_id = local_user_view.person.id;
let person_blocks = blocking(context.pool(), move |conn| {
PersonBlockView::for_person(conn, person_id)
})
.await?
- .map_err(LemmyError::from)
- .map_err(|e| e.with_message("system_err_login"))?;
+ .map_err(|e| LemmyError::from_error_message(e, "system_err_login"))?;
let moderates = blocking(context.pool(), move |conn| {
CommunityModeratorView::for_person(conn, person_id)
})
.await?
- .map_err(LemmyError::from)
- .map_err(|e| e.with_message("system_err_login"))?;
+ .map_err(|e| LemmyError::from_error_message(e, "system_err_login"))?;
Some(MyUserInfo {
local_user_view,
None
};
- let federated_instances = build_federated_instances(
- context.pool(),
- &context.settings().federation,
- &context.settings().hostname,
- )
- .await?;
+ let federated_instances =
+ build_federated_instances(context.pool(), &context.settings()).await?;
Ok(GetSiteResponse {
site_view,