Fix reblog reactions
This commit is contained in:
parent
5c3e7540be
commit
2df879f481
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user