about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 03:43:16 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 03:43:16 -0600
commit11d09ca192f9eff37938f781a5c0dda3ed65685b (patch)
tree234d685c25045aab3ea71e1c363cceebcf120895 /app
parente89e9923f9bcc2302986fda34b3c61ad4b79b1cc (diff)
add `hidden` bangtag to let authors mark the current roar hidden until `publish`ed without it needing to be a draft
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 53c63bf78..59ec16a23 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -712,6 +712,11 @@ class Bangtags
           @component_stack.push(:var)
           add_tags(status, 'self.draft')
 
+        when 'hidden'
+          chunk = nil
+          @status.hidden = true
+          @status.keep_hidden!
+
         when 'format', 'type'
           chunk = nil
           next if cmd[1].nil?