mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
Make sure reminder not sent for deleted post bookmark
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user