From 797b8e0e6f7e154f14669e5e50ab1291fb66ed57 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Tue, 18 Aug 2020 03:24:18 -0500 Subject: [Command Tags] Run module init handlers even if no command tags in post --- app/lib/command_tag/processor.rb | 7 +++---- 1 file 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) -- cgit