remotes/1693045480750635534/spooky-22
Aevann1 2022-04-04 02:21:59 +02:00
parent 5ff51db7d4
commit ac6473ffb9
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ def notifications(v):
if c.replies2 == None: if c.replies2 == None:
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all() c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
cids.update(x.id for x in c.replies2) cids.update(x.id for x in c.replies2)
for x in c.replies2:
x.replies2 = []
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in all): while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in all):
c = c.parent_comment c = c.parent_comment
if c.replies2 == None: if c.replies2 == None: