1
0
Fork 0
forked from gitea/glitch-bird

Removing status

This commit is contained in:
iVPS 2023-06-11 16:11:45 +00:00
parent 7f979b8198
commit c0755f1530

View file

@ -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 }