From 2d589a5ed445b474ab7cec27b0db2a331ed7bd49 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 16 Aug 2024 19:11:23 +0200 Subject: [PATCH] Fix incorrect activity matching in notification unfiltering worker (#31456) --- app/workers/unfilter_notifications_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/unfilter_notifications_worker.rb b/app/workers/unfilter_notifications_worker.rb index 5939a691fb..4351758907 100644 --- a/app/workers/unfilter_notifications_worker.rb +++ b/app/workers/unfilter_notifications_worker.rb @@ -43,6 +43,6 @@ class UnfilterNotificationsWorker end def notifications_with_private_mentions - filtered_notifications.joins(mention: :status).merge(Status.where(visibility: :direct)).includes(mention: :status) + filtered_notifications.where(type: :mention).joins(mention: :status).merge(Status.where(visibility: :direct)).includes(mention: :status) end end