From f3048559d9966e6bf3761d31cb79e01a005ebb78 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 03:57:41 -0600 Subject: fix mention processing bug --- app/services/process_mentions_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 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 -- cgit