Skip to content

Commit

Permalink
Fix reblog reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEssem committed Dec 29, 2023
1 parent 08a21c1 commit 421e3ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/status_reaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class StatusReaction < ApplicationRecord
validates :name, presence: true
validates_with StatusReactionValidator

before_validation do
self.status = status.reblog if status&.reblog?
end

before_validation :set_custom_emoji

private
Expand Down

0 comments on commit 421e3ea

Please sign in to comment.