about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 03:57:41 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 03:57:41 -0600
commitf3048559d9966e6bf3761d31cb79e01a005ebb78 (patch)
tree47df232c0104b8e5c3945c500c34de883fc77539 /app/services
parent11d09ca192f9eff37938f781a5c0dda3ed65685b (diff)
fix mention processing bug
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_mentions_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index ac39464fb..da29fd639 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -8,7 +8,7 @@ class ProcessMentionsService < BaseService
   # remote users
   # @param [Status] status
   def call(status, skip_process: false, skip_notify: false)
-    return if status.hidden || !status.local? || status.draft?
+    return if !status.local? || status.draft?
 
     @status  = status
     mentions = Mention.where(status: status).to_a
@@ -38,7 +38,7 @@ class ProcessMentionsService < BaseService
       status.save!
     end
 
-    return if skip_notify
+    return if skip_notify || status.hidden?
     mentions.uniq.each { |mention| create_notification(mention) }
   end