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 01:49:44 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 01:49:44 -0600
commitc5e671fe0072e06f6302bbf0a0a4d5fc228e40a0 (patch)
treee3d1e40c2d05e8075c53e1b77c4362f08d22472d /app/services
parentacd3ed928f333c7e68277fc7b00bd5dec9d4ff01 (diff)
skip processing mentions in hidden posts
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_mentions_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index 85a22128c..bca00d575 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 unless status.local? && !status.draft?
+    return unless status.local? && (!status.draft? || !status.hidden)
 
     @status  = status
     mentions = Mention.where(status: status).to_a