A platform for community discussion. Free, open, simple.
Make sure reminder not sent for deleted post bookmark
Martin Brennan89a1b3a79127
diff --git a/lib/bookmark_reminder_notification_handler.rb b/lib/bookmark_reminder_notification_handler.rbindex 83f0b9fb3d0..4591719fdc0 100644--- a/lib/bookmark_reminder_notification_handler.rb+++ b/lib/bookmark_reminder_notification_handler.rb@@ -7,7 +7,7 @@ class BookmarkReminderNotificationHandlerdef 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