From 1bd2aa1fd6a16c2067255b936da071d451aee884 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 27 Jul 2020 13:14:29 -0500 Subject: [Command Tags] Skip processing if no prefix in body --- app/lib/command_tag/processor.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/lib/command_tag/processor.rb') diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 4601fee91..6ca355687 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -39,6 +39,12 @@ class CommandTag::Processor end def process! + unless @text.include?('#!') && @text.match?(/^\s*(?:#{MENTIONS_OR_HASHTAGS_RE})?#!/) + process_inline_images! + @status.save! + return + end + reset_status_caches initialize_handlers! -- cgit