This commit is contained in:
Aevann1 2021-07-28 06:17:23 +02:00
parent d5463e8293
commit b49f8e85d1
3 changed files with 5 additions and 5 deletions

View file

@ -193,7 +193,7 @@ class User(Base, Stndrd, Age_times):
@cache.memoize(300)
def commentlisting(self, v=None, page=1, sort="new", t="all"):
comments = self.comments.options(lazyload('*')).filter(Comment.parent_submission is not None).join(Comment.post)
comments = self.comments.options(lazyload('*')).filter(Comment.parent_submission != None).join(Comment.post)
if (not v) or (v.id != self.id and v.admin_level == 0):
comments = comments.filter(Comment.deleted_utc == 0)