diff options
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_mentions_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |