From 90130014dd27a909fda8a63d3ce520d4d31fd68c Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 29 Jul 2019 23:09:51 -0500 Subject: add plain-text console formatting option --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit