mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 16:28:08 +01:00
Fix reblog reactions
This commit is contained in:
parent
08a21c1af6
commit
421e3ea8ba
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue