fddf
This commit is contained in:
parent
86ee8df2de
commit
2c2fa85b51
2 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue