diff --git a/notifier/database/queries/delete_non_notifiable_posts.sql b/notifier/database/queries/delete_non_notifiable_posts.sql index a2d1283..fb04476 100644 --- a/notifier/database/queries/delete_non_notifiable_posts.sql +++ b/notifier/database/queries/delete_non_notifiable_posts.sql @@ -46,7 +46,7 @@ WHERE AND user_config.user_id <> notifiable_post.author_user_id -- Users whose last notified post was earlier than this one - AND user_config.notified_timestamp <= notifiable_post.posted_timestamp + AND user_config.notified_timestamp < notifiable_post.posted_timestamp -- Filter out users unsubscribed to this post AND (thread_sub.sub IS NULL OR thread_sub.sub = 1)