remotes/1693045480750635534/spooky-22
Aevann1 2021-07-26 03:26:04 +02:00
parent 0e312238ff
commit bdb28fe20d
2 changed files with 2 additions and 4 deletions

View File

@ -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())

View File

@ -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">