From 28ecb2a4bebc080fba4aebfd611f502220fd2bd1 Mon Sep 17 00:00:00 2001 From: Essem Date: Fri, 10 Nov 2023 17:36:40 -0600 Subject: [PATCH] Fix reblog reactions --- app/models/status_reaction.rb | 4 ++++ 1 file changed, 4 insertions(+) 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