From 7804a9d893b1fc34f6ad96f0d131531385e3ca2b Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 8 Jun 2022 15:14:38 +0000 Subject: [PATCH] Accept private like (#1968) (#2301) --- crates/apub/src/activities/voting/undo_vote.rs | 2 -- crates/apub/src/activities/voting/vote.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/apub/src/activities/voting/undo_vote.rs b/crates/apub/src/activities/voting/undo_vote.rs index 4f410ae97..d2e72d9a4 100644 --- a/crates/apub/src/activities/voting/undo_vote.rs +++ b/crates/apub/src/activities/voting/undo_vote.rs @@ -2,7 +2,6 @@ use crate::{ activities::{ community::{announce::GetCommunity, send_activity_in_community}, generate_activity_id, - verify_is_public, verify_person_in_community, voting::{undo_vote_comment, undo_vote_post}, }, @@ -85,7 +84,6 @@ impl ActivityHandler for UndoVote { context: &Data, request_counter: &mut i32, ) -> Result<(), LemmyError> { - verify_is_public(&self.to, &self.cc)?; let community = self.get_community(context, request_counter).await?; verify_person_in_community(&self.actor, &community, context, request_counter).await?; verify_urls_match(self.actor.inner(), self.object.actor.inner())?; diff --git a/crates/apub/src/activities/voting/vote.rs b/crates/apub/src/activities/voting/vote.rs index 7971704db..e08e4bb69 100644 --- a/crates/apub/src/activities/voting/vote.rs +++ b/crates/apub/src/activities/voting/vote.rs @@ -2,7 +2,6 @@ use crate::{ activities::{ community::{announce::GetCommunity, send_activity_in_community}, generate_activity_id, - verify_is_public, verify_person_in_community, voting::{vote_comment, vote_post}, }, @@ -87,7 +86,6 @@ impl ActivityHandler for Vote { context: &Data, request_counter: &mut i32, ) -> Result<(), LemmyError> { - verify_is_public(&self.to, &self.cc)?; let community = self.get_community(context, request_counter).await?; verify_person_in_community(&self.actor, &community, context, request_counter).await?; let site = blocking(context.pool(), Site::read_local_site).await??;