Make sure reminder not sent for deleted post bookmark

This commit is contained in:
Martin Brennan 2020-03-12 16:10:56 +10:00
parent 03c012bd97
commit 89a1b3a791
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class BookmarkReminderNotificationHandler
def self.send_notification(bookmark)
return if bookmark.blank?
Bookmark.transaction do
if bookmark.post.blank?
if bookmark.post.blank? || bookmark.post.deleted_at.present?
return clear_reminder(bookmark)
end