From ed5e68ca007879ab5404e21fb08cc85889fff033 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 16 Aug 2024 17:33:39 +0200 Subject: [PATCH] Try to figure out what the heck is going on with that flaky test --- app/workers/unfilter_notifications_worker.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/workers/unfilter_notifications_worker.rb b/app/workers/unfilter_notifications_worker.rb index 5939a691fb..017dd6700a 100644 --- a/app/workers/unfilter_notifications_worker.rb +++ b/app/workers/unfilter_notifications_worker.rb @@ -27,7 +27,10 @@ class UnfilterNotificationsWorker private def push_to_conversations! - notifications_with_private_mentions.reorder(nil).find_each(order: :desc) { |notification| AccountConversation.add_status(@recipient, notification.target_status) } + notifications_with_private_mentions.reorder(nil).find_each(order: :desc) do |notification| + puts "DEBUG: what is going on???? #{notification.type.inspect} #{notification.account.notifications.count} #{notification.from_account.statuses.count} #{notification.activity.inspect}" if notification.target_status.nil? + AccountConversation.add_status(@recipient, notification.target_status) + end end def unfilter_notifications!