about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/lib/command_tag/processor.rb6
1 files changed, 6 insertions, 0 deletions
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!