mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
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)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user