Make sure reminder not sent for deleted post bookmark
This commit is contained in:
parent
03c012bd97
commit
89a1b3a791
|
@ -7,7 +7,7 @@ class BookmarkReminderNotificationHandler
|
||||||
def self.send_notification(bookmark)
|
def self.send_notification(bookmark)
|
||||||
return if bookmark.blank?
|
return if bookmark.blank?
|
||||||
Bookmark.transaction do
|
Bookmark.transaction do
|
||||||
if bookmark.post.blank?
|
if bookmark.post.blank? || bookmark.post.deleted_at.present?
|
||||||
return clear_reminder(bookmark)
|
return clear_reminder(bookmark)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue