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 02:18:37 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 02:18:37 -0600
commit484c4d0c5dc347b79209f6870340df07d49bb5df (patch)
tree8b79c009288dadb4ec99b72203d64dbd08a6a2da /app/services
parentcc484f7271314723034be458c5c062045f4dff29 (diff)
do not try to process 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 bca00d575..ac39464fb 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? || !status.hidden)
+    return if status.hidden || !status.local? || status.draft?
 
     @status  = status
     mentions = Mention.where(status: status).to_a