-
- #[tracing::instrument(skip_all)]
- pub async fn send(
- object: &PostOrComment,
- actor: &ApubPerson,
- community_id: CommunityId,
- kind: VoteType,
- context: &LemmyContext,
- ) -> Result<(), LemmyError> {
- let community = Community::read(context.pool(), community_id).await?.into();
- let vote = Vote::new(object, actor, &community, kind, context)?;
-
- let activity = AnnouncableActivities::Vote(vote);
- send_activity_in_community(activity, actor, &community, vec![], false, context).await
- }