2
0

Add quoted_update notification type (#35820)

This commit is contained in:
Claire
2025-08-25 17:44:18 +02:00
committed by GitHub
parent 7aba79ade9
commit f3a932d8a1
12 changed files with 117 additions and 6 deletions

View File

@@ -17,6 +17,8 @@ class LocalNotificationWorker
# should replace the previous ones.
if type == 'update'
Notification.where(account: receiver, activity: activity, type: 'update').in_batches.delete_all
elsif type == 'quoted_update'
Notification.where(account: receiver, activity: activity, type: 'quoted_update').in_batches.delete_all
elsif Notification.where(account: receiver, activity: activity, type: type).any?
return
end