Fix incorrect activity matching in notification unfiltering worker (#31456)

pull/2815/head
Claire 2024-08-16 19:11:23 +02:00 committed by GitHub
parent 1acbb628b9
commit 2d589a5ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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