forked from rDrama/rDrama
fddf
parent
0e312238ff
commit
bdb28fe20d
|
@ -232,9 +232,6 @@ class User(Base, Stndrd, Age_times):
|
|||
comments = comments.filter(Comment.deleted_utc == 0)
|
||||
comments = comments.filter(Comment.is_banned == False)
|
||||
|
||||
if v and v.admin_level == 0:
|
||||
comments = comments.filter(or_(Comment.author_id == v.id))
|
||||
|
||||
comments = comments.options(contains_eager(Comment.post))
|
||||
|
||||
now = int(time.time())
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
|
||||
<!--conditions under which a comment might be hidden-->
|
||||
|
||||
{% if False %}
|
||||
{% if (c.is_banned or c.deleted_utc > 0 or c.is_blocking or c.is_blocked) and not (v and v.admin_level>0) and not (v and v.id==c.author_id) %}
|
||||
|
||||
|
||||
|
||||
<div id="comment-{{c.base36id}}" class="comment">
|
||||
|
|
Loading…
Reference in New Issue