mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:32:45 +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
|
end
|
||||||
|
|
||||||
# Create the notification
|
# Create the notification
|
||||||
created = user.notifications.create(
|
created = user.notifications.create!(
|
||||||
notification_type: type,
|
notification_type: type,
|
||||||
topic_id: post.topic_id,
|
topic_id: post.topic_id,
|
||||||
post_number: post.post_number,
|
post_number: post.post_number,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user