]> Untitled Git - lemmy.git/commitdiff
Rewrite community moderators collection
authorFelix Ableitner <me@nutomic.com>
Wed, 27 Oct 2021 10:56:07 +0000 (12:56 +0200)
committerFelix Ableitner <me@nutomic.com>
Fri, 29 Oct 2021 10:45:53 +0000 (12:45 +0200)
crates/apub/src/collections/community_outbox.rs

index 4b5e7618a4ba06d4c2c903990fe876edbdb3fca6..faf33849e490291ef6925dc7d63b8527bda82a3f 100644 (file)
@@ -6,12 +6,8 @@ use crate::{
   objects::{person::ApubPerson, post::ApubPost},
 };
 use activitystreams::{
-  base::AnyBase,
-  chrono::NaiveDateTime,
-  collection::kind::OrderedCollectionType,
-  object::Tombstone,
-  primitives::OneOrMany,
-  url::Url,
+  base::AnyBase, chrono::NaiveDateTime, collection::kind::OrderedCollectionType,
+  primitives::OneOrMany, url::Url,
 };
 use lemmy_api_common::blocking;
 use lemmy_apub_lib::{
@@ -44,7 +40,7 @@ pub(crate) struct ApubCommunityOutbox(Vec<ApubPost>);
 #[async_trait::async_trait(?Send)]
 impl ApubObject for ApubCommunityOutbox {
   type DataType = CommunityContext;
-  type TombstoneType = Tombstone;
+  type TombstoneType = ();
   type ApubType = GroupOutbox;
 
   fn last_refreshed_at(&self) -> Option<NaiveDateTime> {