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
1 changed files with 1 additions and 1 deletions

View File

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