about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-06 01:12:36 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commit2f23d34e3694ffded0c5ee43f59d7cdf3bfbebfc (patch)
tree2572bef84fc3d247e039aecd17a911235e95ba51 /app/lib
parentdb6ae92c0968611123813c7b14cc8ff7914ebcce (diff)
Add header to draft roars.
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/bangtags.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 089aa66dc..02df8610c 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -390,7 +390,8 @@ class Bangtags
             status.sharekey = SecureRandom.urlsafe_base64(32)
           end
         when 'draft'
-          @chunks << chunk
+          chunk = nil
+          @chunks.insert(0, "[center]`#!draft!#`[/center]\n") unless @chunks.first.include?('#!draft')
           status.visibility = :direct
           @vore_stack.push('_draft')
           @component_stack.push(:var)