about summary refs log tree commit diff
path: root/app/services/process_mentions_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/process_mentions_service.rb')
-rw-r--r--app/services/process_mentions_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index f0d3d5fcb..738bfa2d6 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -4,7 +4,7 @@ class ProcessMentionsService < BaseService
   # Scan status for mentions and fetch remote mentioned users, create
   # local mention pointers
   # @param [Status] status
-  def call(status)
+  def call(status, skip_notify = false)
     return unless status.local? && !status.draft?
 
     @status  = status
@@ -31,6 +31,7 @@ class ProcessMentionsService < BaseService
 
     status.save!
 
+    return if skip_notify
     mentions.each { |mention| create_notification(mention) }
   end