From 484c4d0c5dc347b79209f6870340df07d49bb5df Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:18:37 -0600 Subject: do not try to process mentions in hidden posts --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/process_mentions_service.rb') 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 -- cgit