mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
FIX: Liked notifications should not be consolidated across multiple users.
This commit is contained in:
@@ -89,9 +89,14 @@ class PostActionNotifier
|
||||
user_liked_consolidated_notification =
|
||||
user_notifications
|
||||
.where(
|
||||
"created_at > ? AND notification_type = ?",
|
||||
"
|
||||
created_at > ? AND
|
||||
notification_type = ? AND
|
||||
data::json ->> 'display_username' = ?
|
||||
",
|
||||
consolidation_window,
|
||||
Notification.types[:liked_consolidated]
|
||||
Notification.types[:liked_consolidated],
|
||||
post_action.user.username_lower
|
||||
)
|
||||
.first
|
||||
|
||||
|
||||
Reference in New Issue
Block a user