mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Don't save mute notes if the note is blank (#193)
This commit is contained in:
@@ -13,5 +13,7 @@
|
||||
class Glitch::Note < ApplicationRecord
|
||||
belongs_to :target, polymorphic: true
|
||||
|
||||
validates :note, presence: true
|
||||
|
||||
alias_attribute :text, :note
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user