use crate::{
activities::{
- community::announce::GetCommunity,
deletion::{receive_delete_action, verify_delete_activity, DeletableObjects},
generate_activity_id,
},
cc: cc.into_iter().collect(),
kind: UndoType::Undo,
id,
+ audience: community.map(|c| ObjectId::<ApubCommunity>::new(c.actor_id.clone())),
})
}
Ok(())
}
}
-
-#[async_trait::async_trait(?Send)]
-impl GetCommunity for UndoDelete {
- #[tracing::instrument(skip_all)]
- async fn get_community(
- &self,
- context: &LemmyContext,
- request_counter: &mut i32,
- ) -> Result<ApubCommunity, LemmyError> {
- self.object.get_community(context, request_counter).await
- }
-}