about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-05-12 21:33:37 +0200
committerThibG <thib@sitedethib.com>2019-05-17 23:51:14 +0200
commitd7520f81759e9db58a5b5ca61b9114e9ef44d92f (patch)
treef7d14b9aad6cc910fb932526764e4f36e7345f0a /app/models/status.rb
parent94aef563b9abbc449028f44c4aac84ef2e072d89 (diff)
Add support for HTML-formatted toots
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index e0dc74790..6f3ba4cc3 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -75,7 +75,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) }, allow_nil: true
+  validates :content_type, inclusion: { in: %w(text/plain text/markdown text/html) }, allow_nil: true
 
   accepts_nested_attributes_for :poll