return only publicely visible comments on /count
A regression introduced by 5ce48de
.
This commit is contained in:
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…
Reference in New Issue
Block a user