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?
|
return unless post_action.is_like?
|
||||||
|
|
||||||
post = post_action.post
|
post = post_action.post
|
||||||
return if post_action.user.blank?
|
return if post_action.user.blank? || post.blank?
|
||||||
|
|
||||||
alerter.create_notification(
|
alerter.create_notification(
|
||||||
post.user,
|
post.user,
|
||||||
|
|
Loading…
Reference in New Issue