This commit is contained in:
Aevann1 2021-10-14 15:49:21 +02:00
parent e31a9c91bc
commit 88279c5877

View file

@ -539,7 +539,7 @@ class User(Base):
def saved_comment_idlist(self):
try: saved = [x[0] for x in g.db.query(SaveRelationship.comment_id).options(lazyload('*')).filter(SaveRelationship.user_id == self.id).all()]
except: return None
except: return []
comments = g.db.query(Comment.id).options(lazyload('*')).filter(Comment.id.in_(saved))
if self.admin_level == 0: