FIX: check for presence of liked post before creating notification
This commit is contained in:
parent
b8688c4af7
commit
b3cd83460b
|
@ -76,7 +76,7 @@ class PostActionNotifier
|
|||
return unless post_action.is_like?
|
||||
|
||||
post = post_action.post
|
||||
return if post_action.user.blank?
|
||||
return if post_action.user.blank? || post.blank?
|
||||
|
||||
alerter.create_notification(
|
||||
post.user,
|
||||
|
|
Loading…
Reference in New Issue