mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 03:41:02 +00:00
Merge traits ToApub and FromApub into ApubObject
This commit is contained in:
parent
b18ea3e0cc
commit
bb085189e0
2 changed files with 4 additions and 10 deletions
|
@ -6,18 +6,14 @@ use crate::{
|
||||||
report::Report,
|
report::Report,
|
||||||
},
|
},
|
||||||
collections::{
|
collections::{
|
||||||
community_moderators::ApubCommunityModerators,
|
community_moderators::ApubCommunityModerators, community_outbox::ApubCommunityOutbox,
|
||||||
community_outbox::ApubCommunityOutbox,
|
|
||||||
CommunityContext,
|
CommunityContext,
|
||||||
},
|
},
|
||||||
context::lemmy_context,
|
context::lemmy_context,
|
||||||
fetcher::object_id::ObjectId,
|
fetcher::object_id::ObjectId,
|
||||||
generate_outbox_url,
|
generate_outbox_url,
|
||||||
http::{
|
http::{
|
||||||
create_apub_response,
|
create_apub_response, create_apub_tombstone_response, payload_to_string, receive_activity,
|
||||||
create_apub_tombstone_response,
|
|
||||||
payload_to_string,
|
|
||||||
receive_activity,
|
|
||||||
},
|
},
|
||||||
objects::community::ApubCommunity,
|
objects::community::ApubCommunity,
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
check_is_apub_id_valid,
|
check_is_apub_id_valid,
|
||||||
collections::{
|
collections::{
|
||||||
community_moderators::ApubCommunityModerators,
|
community_moderators::ApubCommunityModerators, community_outbox::ApubCommunityOutbox,
|
||||||
community_outbox::ApubCommunityOutbox,
|
|
||||||
CommunityContext,
|
CommunityContext,
|
||||||
},
|
},
|
||||||
context::lemmy_context,
|
context::lemmy_context,
|
||||||
fetcher::object_id::ObjectId,
|
fetcher::object_id::ObjectId,
|
||||||
generate_moderators_url,
|
generate_moderators_url, generate_outbox_url,
|
||||||
generate_outbox_url,
|
|
||||||
objects::{get_summary_from_string_or_source, tombstone::Tombstone, ImageObject, Source},
|
objects::{get_summary_from_string_or_source, tombstone::Tombstone, ImageObject, Source},
|
||||||
CommunityType,
|
CommunityType,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue