diff --git a/isso/db/comments.py b/isso/db/comments.py index 7d3aa01..063eb0c 100644 --- a/isso/db/comments.py +++ b/isso/db/comments.py @@ -182,7 +182,7 @@ class Comments: threads = dict(self.db.execute([ 'SELECT threads.uri, COUNT(comments.id) FROM comments', - 'LEFT OUTER JOIN threads ON threads.id = tid', + 'LEFT OUTER JOIN threads ON threads.id = tid AND comments.mode = 1', 'GROUP BY threads.uri' ]).fetchall())