diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-18 03:24:18 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 797b8e0e6f7e154f14669e5e50ab1291fb66ed57 (patch) | |
tree | bbbaca0126e32e3559c38f8aa26d359602d55f05 /app/lib | |
parent | 3d078ac164c254860dc263b6afac05334c9cfe11 (diff) |
[Command Tags] Run module init handlers even if no command tags in post
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/command_tag/processor.rb | 7 |
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) |