From 421e3ea8ba511d829fd784ad6c3335380ac7d0d5 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