return only publicely visible comments on /count

A regression introduced by 5ce48de.
pull/80/merge
Martin Zimmermann 10 years ago
parent 1e2efb24b3
commit 78b34ecdd2

@ -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())

Loading…
Cancel
Save