Skip to content
Snippets Groups Projects
Commit 5616951a authored by roadscape's avatar roadscape
Browse files

filter out notifs for deleted posts

parent d105b0b1
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,7 @@ def _notifs_sql(where): ...@@ -65,6 +65,7 @@ def _notifs_sql(where):
LEFT JOIN hive_communities hc ON hn.community_id = hc.id LEFT JOIN hive_communities hc ON hn.community_id = hc.id
WHERE %s WHERE %s
AND score >= :min_score AND score >= :min_score
AND COALESCE(hp.is_deleted, False) = False
ORDER BY hn.id DESC ORDER BY hn.id DESC
LIMIT :limit""" LIMIT :limit"""
return sql % where return sql % where
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment