diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-29 23:09:51 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-29 23:09:51 -0500 |
commit | 90130014dd27a909fda8a63d3ce520d4d31fd68c (patch) | |
tree | 567a2ce75e2102e810a98ece02ca83257e460911 /app/models | |
parent | 0fb1e7888e8f2f83c8f1d6b19a44b6c079251a2e (diff) |
add plain-text console formatting option
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 16206ae5e..5fba7b38a 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -88,7 +88,7 @@ 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/x-bbcode text/x-bbcode+markdown text/html) }, allow_nil: true + validates :content_type, inclusion: { in: %w(text/plain text/console text/markdown text/x-bbcode text/x-bbcode+markdown text/html) }, allow_nil: true accepts_nested_attributes_for :poll |