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},
},
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())?;
activities::{
community::{announce::GetCommunity, send_activity_in_community},
generate_activity_id,
- verify_is_public,
verify_person_in_community,
voting::{vote_comment, vote_post},
},
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??;