forked from rDrama/rDrama
nigg
parent
fdfe8e54f3
commit
f10b6e7f2c
|
@ -399,6 +399,11 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all", **kwargs):
|
||||||
|
|
||||||
comments = comments.join(posts, Comment.parent_submission == posts.c.id)
|
comments = comments.join(posts, Comment.parent_submission == posts.c.id)
|
||||||
|
|
||||||
|
if not v:
|
||||||
|
comments = comments.filter(Submission.club == False)
|
||||||
|
elif v.admin_level < 3 and (v.coins < 750 or v.club_banned):
|
||||||
|
comments = comments.filter(Submission.club == False)
|
||||||
|
|
||||||
now = int(time.time())
|
now = int(time.time())
|
||||||
if t == 'hour':
|
if t == 'hour':
|
||||||
cutoff = now - 3600
|
cutoff = now - 3600
|
||||||
|
|
Loading…
Reference in New Issue