mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
FIX: Don't silently fail if notification fails to create.
This commit is contained in:
parent
ebd966fbdb
commit
be49da9105
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user