return Err(NotFound.into());
}
- if !comment.deleted {
+ if !comment.deleted && !comment.removed {
Ok(create_apub_response(&comment.into_apub(&**context).await?))
} else {
Ok(create_apub_tombstone_response(comment.ap_id.clone()))
.await??
.into();
- if !community.deleted {
+ if !community.deleted && !community.removed {
let apub = community.into_apub(&**context).await?;
Ok(create_apub_response(&apub))
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
})
.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
return Err(NotFound.into());
}
- if !post.deleted {
+ if !post.deleted && !post.removed {
Ok(create_apub_response(&post.into_apub(&context).await?))
} else {
Ok(create_apub_tombstone_response(post.ap_id.clone()))