diff --git a/app/models/status_reaction.rb b/app/models/status_reaction.rb index bc6eda2a1c..2fdb3da0ac 100644 --- a/app/models/status_reaction.rb +++ b/app/models/status_reaction.rb @@ -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