context: web::Data<LemmyContext>,
) -> Result<HttpResponse<Body>, LemmyError> {
let community = blocking(context.pool(), move |conn| {
- Community::read_from_name(&conn, &info.community_name)
+ Community::read_from_name(conn, &info.community_name)
})
.await??;
let community_id = community.id;
let community_followers = blocking(context.pool(), move |conn| {
- CommunityFollowerView::for_community(&conn, community_id)
+ CommunityFollowerView::for_community(conn, community_id)
})
.await??;
context: web::Data<LemmyContext>,
) -> Result<HttpResponse<Body>, LemmyError> {
let community = blocking(context.pool(), move |conn| {
- Community::read_from_name(&conn, &info.community_name)
+ Community::read_from_name(conn, &info.community_name)
})
.await??;
context: web::Data<LemmyContext>,
) -> Result<HttpResponse<Body>, LemmyError> {
let community = blocking(context.pool(), move |conn| {
- Community::read_from_name(&conn, &info.community_name)
+ Community::read_from_name(conn, &info.community_name)
})
.await??;
context: web::Data<LemmyContext>,
) -> Result<HttpResponse<Body>, LemmyError> {
let community = blocking(context.pool(), move |conn| {
- Community::read_from_name(&conn, &info.community_name)
+ Community::read_from_name(conn, &info.community_name)
})
.await??;
// ignore that for now
let cid = community.id;
let moderators = blocking(context.pool(), move |conn| {
- CommunityModeratorView::for_community(&conn, cid)
+ CommunityModeratorView::for_community(conn, cid)
})
.await??;