forked from gitea/glitch-bird
Removing status
This commit is contained in:
parent
7f979b8198
commit
c0755f1530
|
@ -87,8 +87,6 @@ class Status < ApplicationRecord
|
|||
validates_with DisallowedHashtagsValidator
|
||||
validates :reblog, uniqueness: { scope: :account }, if: :reblog?
|
||||
validates :visibility, exclusion: { in: %w(direct limited) }, if: :reblog?
|
||||
validates :content_type, inclusion: { in: %w(text/plain text/markdown text/html) }, allow_nil: true
|
||||
|
||||
accepts_nested_attributes_for :poll
|
||||
|
||||
default_scope { recent.kept }
|
||||
|
|
Loading…
Reference in a new issue