mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't silently fail if notification fails to create.
This commit is contained in:
@@ -379,7 +379,7 @@ class PostAlerter
|
||||
end
|
||||
|
||||
# Create the notification
|
||||
created = user.notifications.create(
|
||||
created = user.notifications.create!(
|
||||
notification_type: type,
|
||||
topic_id: post.topic_id,
|
||||
post_number: post.post_number,
|
||||
|
||||
Reference in New Issue
Block a user