|
|
|
@ -40,7 +40,7 @@ pub(crate) async fn get_apub_community_http(
|
|
|
|
|
.await??
|
|
|
|
|
.into();
|
|
|
|
|
|
|
|
|
|
if !community.deleted {
|
|
|
|
|
if !community.deleted && !community.removed {
|
|
|
|
|
let apub = community.into_apub(&**context).await?;
|
|
|
|
|
|
|
|
|
|
Ok(create_apub_response(&apub))
|
|
|
|
@ -83,6 +83,10 @@ pub(crate) async fn get_apub_community_outbox(
|
|
|
|
|
Community::read_from_name(conn, &info.community_name, false)
|
|
|
|
|
})
|
|
|
|
|
.await??;
|
|
|
|
|
if community.deleted || community.removed {
|
|
|
|
|
return Err(LemmyError::from_message("deleted"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let id = ObjectId::new(generate_outbox_url(&community.actor_id)?);
|
|
|
|
|
let outbox_data = CommunityContext(community.into(), context.get_ref().clone());
|
|
|
|
|
let outbox: ApubCommunityOutbox = id
|
|
|
|
@ -101,6 +105,10 @@ pub(crate) async fn get_apub_community_moderators(
|
|
|
|
|
})
|
|
|
|
|
.await??
|
|
|
|
|
.into();
|
|
|
|
|
if community.deleted || community.removed {
|
|
|
|
|
return Err(LemmyError::from_message("deleted"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let id = ObjectId::new(generate_outbox_url(&community.actor_id)?);
|
|
|
|
|
let outbox_data = CommunityContext(community, context.get_ref().clone());
|
|
|
|
|
let moderators: ApubCommunityModerators = id
|
|
|
|
|