set correct content type for `draft`s

staging
multiple creatures 2019-07-17 01:59:40 -05:00
parent c135018d9f
commit 12d5f1edb6
1 changed files with 2 additions and 1 deletions

View File

@ -417,7 +417,8 @@ class Bangtags
when 'draft'
chunk = nil
@chunks.insert(0, "[center]`#!draft!#`[/center]\n") unless @chunks.present? && @chunks.first.include?('#!draft')
status.visibility = :direct
@status.visibility = :direct
@status.content_type = 'text/x-bbcode+markdown'
@vore_stack.push('_draft')
@component_stack.push(:var)
add_tags(status, 'self.draft')