diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-17 01:59:40 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-17 01:59:40 -0500 |
commit | 12d5f1edb69da985690ac1899215a57a82552cfa (patch) | |
tree | 771b74718b3e9d532fa0f2741993994a4e4c222c /app/lib | |
parent | c135018d9f8b3ac24d4a726d8555fa6ef3d8f6c4 (diff) |
set correct content type for `draft`s
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 4b24e9d47..fd3cd72d1 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -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') |