]> Untitled Git - lemmy.git/commitdiff
Merge traits ToApub and FromApub into ApubObject
authorFelix Ableitner <me@nutomic.com>
Tue, 26 Oct 2021 19:05:26 +0000 (21:05 +0200)
committerFelix Ableitner <me@nutomic.com>
Fri, 29 Oct 2021 10:45:53 +0000 (12:45 +0200)
crates/apub/src/http/community.rs
crates/apub/src/objects/community.rs

index dcaf551f16837a65667f2b19761faaefffaa69e7..6a1c02d7e1013adb6c88189d84d7eda5401bc973 100644 (file)
@@ -6,18 +6,14 @@ use crate::{
     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,
 };
index e71addba574adce8793119d0b8e20cfe357732f9..21ae614fb38883682b6967a0fc912cea53d449f2 100644 (file)
@@ -1,14 +1,12 @@
 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,
 };