base::AnyBase,
chrono::NaiveDateTime,
collection::kind::OrderedCollectionType,
+ object::Tombstone,
primitives::OneOrMany,
url::Url,
};
#[async_trait::async_trait(?Send)]
impl ApubObject for ApubCommunityOutbox {
type DataType = CommunityContext;
- type TombstoneType = ();
+ type TombstoneType = Tombstone;
type ApubType = GroupOutbox;
fn last_refreshed_at(&self) -> Option<NaiveDateTime> {
use crate::objects::community::ApubCommunity;
use lemmy_websocket::LemmyContext;
+
pub(crate) mod community_moderators;
pub(crate) mod community_outbox;
report::Report,
},
collections::{
- community_moderators::ApubCommunityModerators, community_outbox::ApubCommunityOutbox,
+ community_moderators::ApubCommunityModerators,
+ community_outbox::ApubCommunityOutbox,
CommunityContext,
},
context::lemmy_context,
fetcher::object_id::ObjectId,
generate_outbox_url,
http::{
- create_apub_response, create_apub_tombstone_response, payload_to_string, receive_activity,
+ create_apub_response,
+ create_apub_tombstone_response,
+ payload_to_string,
+ receive_activity,
},
objects::community::ApubCommunity,
};
use crate::{
check_is_apub_id_valid,
collections::{
- community_moderators::ApubCommunityModerators, community_outbox::ApubCommunityOutbox,
+ community_moderators::ApubCommunityModerators,
+ community_outbox::ApubCommunityOutbox,
CommunityContext,
},
context::lemmy_context,
fetcher::object_id::ObjectId,
- generate_moderators_url, generate_outbox_url,
+ generate_moderators_url,
+ generate_outbox_url,
objects::{get_summary_from_string_or_source, tombstone::Tombstone, ImageObject, Source},
CommunityType,
};