FIX: check for presence of liked post before creating notification

This commit is contained in:
Arpit Jalan 2019-10-24 14:25:56 +05:30
parent b8688c4af7
commit b3cd83460b

View File

@ -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,