From 9d35a7aef6f64088dd97446f10aee581f3009af7 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 24 Aug 2020 13:22:41 -0500 Subject: [Bug, Command Tags] Avoid processing deleted statuses --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb index ba61e4464..b5134bf9c 100644 --- a/app/services/process_mentions_service.rb +++ b/app/services/process_mentions_service.rb @@ -10,7 +10,7 @@ class ProcessMentionsService < BaseService # @option [Enumerable] :mentions Mentions to include # @option [Boolean] :deliver Deliver mention notifications def call(status, mentions: [], deliver: true) - return unless status.local? && !status.frozen? + return unless status.local? && !(status.frozen? || status.destroyed?) @status = status @status.text, mentions = ResolveMentionsService.new.call(@status, mentions: mentions) -- cgit