Add support for HTML-formatted toots

This commit is contained in:
Thibaut Girka
2019-05-12 21:33:37 +02:00
committed by ThibG
parent 94aef563b9
commit d7520f8175
2 changed files with 3 additions and 3 deletions

View File

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