]> Untitled Git - lemmy.git/commitdiff
Accept private like (#1968) (#2301)
authorNutomic <me@nutomic.com>
Wed, 8 Jun 2022 15:14:38 +0000 (15:14 +0000)
committerGitHub <noreply@github.com>
Wed, 8 Jun 2022 15:14:38 +0000 (11:14 -0400)
crates/apub/src/activities/voting/undo_vote.rs
crates/apub/src/activities/voting/vote.rs

index 4f410ae9764cd6dd482d7edb15e98472871df97d..d2e72d9a4b1bc4be86e3f4f34cde7239f6276179 100644 (file)
@@ -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<LemmyContext>,
     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())?;
index 7971704db120db99b719b721beecd065456573a9..e08e4bb69c9db1bf70e0e7b5dbed6021c6ef1311 100644 (file)
@@ -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<LemmyContext>,
     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??;