forked from rDrama/rDrama
remove leftover shit
parent
c9a07388a6
commit
77e7663476
|
@ -231,7 +231,7 @@ class Comment(Base):
|
|||
'is_bot': self.is_bot,
|
||||
'flags': flags,
|
||||
'author': '👻' if self.ghost else self.author.json,
|
||||
# 'replies': [x.json(db=db) for x in self.replies(sort="old", v=None, db=db)] # WORKER TIMEOUTS ON BUGTHREAD
|
||||
# 'replies': [x.json(db=db) for x in self.replies(sort="old", v=None)] # WORKER TIMEOUTS ON BUGTHREAD
|
||||
}
|
||||
|
||||
if self.level >= 2: data['parent_comment_id'] = self.parent_comment_id
|
||||
|
|
|
@ -246,7 +246,7 @@ def more_comments(v, cid):
|
|||
comments = [c[0] for c in comments.all()]
|
||||
else:
|
||||
c = get_comment(cid)
|
||||
comments = c.replies(sort=request.values.get('sort'), v=v, db=g.db)
|
||||
comments = c.replies(sort=request.values.get('sort'), v=v)
|
||||
|
||||
if comments: p = comments[0].post
|
||||
else: p = None
|
||||
|
|
|
@ -640,7 +640,7 @@ def messagereply(v:User):
|
|||
notif = Notification(comment_id=c.id, user_id=admin)
|
||||
g.db.add(notif)
|
||||
|
||||
ids = [top_comment.id] + [x.id for x in top_comment.replies(sort="old", v=v, db=g.db)]
|
||||
ids = [top_comment.id] + [x.id for x in top_comment.replies(sort="old", v=v)]
|
||||
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids), Notification.user_id.in_(admins))
|
||||
for n in notifications:
|
||||
g.db.delete(n)
|
||||
|
|
Loading…
Reference in New Issue