about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-18 03:24:18 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commit797b8e0e6f7e154f14669e5e50ab1291fb66ed57 (patch)
treebbbaca0126e32e3559c38f8aa26d359602d55f05
parent3d078ac164c254860dc263b6afac05334c9cfe11 (diff)
[Command Tags] Run module init handlers even if no command tags in post
-rw-r--r--app/lib/command_tag/processor.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb
index 67d16d237..2c33b5f83 100644
--- a/app/lib/command_tag/processor.rb
+++ b/app/lib/command_tag/processor.rb
@@ -44,16 +44,15 @@ class CommandTag::Processor
   end
 
   def process!
+    reset_status_caches
+    all_handlers!(:startup)
+
     unless @text.match?(PARSEABLE_RE)
       process_inline_images!
       @status.save!
       return
     end
 
-    reset_status_caches
-
-    all_handlers!(:startup)
-
     @text = parse_statements_from!(@text, @statements)
 
     execute_statements(:at_start)