1
0

Fix reblog reactions

This commit is contained in:
Essem 2023-11-10 17:36:40 -06:00
parent cd36daecfe
commit 9ea042f8d9
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C

View File

@ -22,6 +22,10 @@ class StatusReaction < ApplicationRecord
validates :name, presence: true validates :name, presence: true
validates_with StatusReactionValidator validates_with StatusReactionValidator
before_validation do
self.status = status.reblog if status&.reblog?
end
before_validation :set_custom_emoji before_validation :set_custom_emoji
private private