remotes/1693045480750635534/spooky-22
Aevann1 2021-10-14 15:49:21 +02:00
parent 44675e0c94
commit d4cf2dccd9
1 changed files with 1 additions and 1 deletions

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: