diff --git a/app/services/feeds/import.rb b/app/services/feeds/import.rb index 699619fb5..e5821453f 100644 --- a/app/services/feeds/import.rb +++ b/app/services/feeds/import.rb @@ -167,7 +167,10 @@ module Feeds next end - Slack::WorkflowWebhookWorker.perform_async("Imported #{articles.length} articles for #{user.username}") + if articles.length.positive? + Slack::WorkflowWebhookWorker.perform_async("Imported #{articles.length} articles for #{user.username}") + end + articles end