forked from rDrama/rDrama
make it possible for non-jannies to see wall comments in /comments
parent
d5a56e3260
commit
d43bed37d5
|
@ -195,8 +195,8 @@ def comment_idlist(v=None, page=1, sort="new", t="day", gt=0, lt=0):
|
||||||
comments = comments.filter(
|
comments = comments.filter(
|
||||||
Comment.is_banned == False,
|
Comment.is_banned == False,
|
||||||
Comment.deleted_utc == 0,
|
Comment.deleted_utc == 0,
|
||||||
Submission.private == False,
|
|
||||||
Comment.author_id.notin_(v.userblocks),
|
Comment.author_id.notin_(v.userblocks),
|
||||||
|
or_(Comment.parent_submission == None, Submission.private == False),
|
||||||
)
|
)
|
||||||
|
|
||||||
if gt: comments = comments.filter(Comment.created_utc > gt)
|
if gt: comments = comments.filter(Comment.created_utc > gt)
|
||||||
|
|
Loading…
Reference in New Issue