DEV: Add plugin modifier for notification_data manipulation (#22208)

This commit is contained in:
Mark VanLandingham 2023-06-20 14:07:02 -05:00 committed by GitHub
parent e1561bc459
commit 762dd971d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -588,6 +588,9 @@ class PostAlerter
end
# Create the notification
notification_data =
DiscoursePluginRegistry.apply_modifier(:notification_data, notification_data)
created =
user.notifications.consolidate_or_create!(
notification_type: type,