From c5e671fe0072e06f6302bbf0a0a4d5fc228e40a0 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 01:49:44 -0600 Subject: skip processing mentions in hidden posts --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit