Skip to content

Commit

Permalink
DEV: Remove additional query (#290)
Browse files Browse the repository at this point in the history
Followup to 0b4b186
  • Loading branch information
martin-brennan authored May 16, 2024
1 parent 0b4b186 commit ad708cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def post_reactions_users
valid_reactions: DiscourseReactions::Reaction.valid_reactions.to_a,
)

likes = likes.where.not(id: historical_reaction_likes.select(&:id))
likes = likes.where.not(id: historical_reaction_likes.select(:id))
end

if likes.present?
Expand Down

0 comments on commit ad708cf

Please sign in to comment.