diff --git a/crates/apub/src/activities/voting/vote.rs b/crates/apub/src/activities/voting/vote.rs index 9851f3d88..1cdc81952 100644 --- a/crates/apub/src/activities/voting/vote.rs +++ b/crates/apub/src/activities/voting/vote.rs @@ -79,10 +79,8 @@ impl ActivityHandler for Vote { }; // Don't allow dislikes for either disabled, or local only votes - let downvote_fail = self.kind == VoteType::Dislike - && [FederationMode::Disable, FederationMode::Local].contains(&downvote_setting); - let upvote_fail = self.kind == VoteType::Like - && [FederationMode::Disable, FederationMode::Local].contains(&upvote_setting); + let downvote_fail = self.kind == VoteType::Dislike && downvote_setting != FederationMode::All; + let upvote_fail = self.kind == VoteType::Like && upvote_setting != FederationMode::All; if downvote_fail || upvote_fail { // If this is a rejection, undo the vote