remotes/1693045480750635534/spooky-22
Aevann1 2022-04-04 02:05:40 +02:00
parent 79af506932
commit 5b73881849
1 changed files with 2 additions and 4 deletions

View File

@ -133,14 +133,12 @@ def notifications(v):
if c.parent_submission:
if not c.replies2:
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
print(c.replies2)
cids = cids | set(x.id for x in c.replies2)
cids.update(x.id for x in c.replies2)
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
c = c.parent_comment
if not c.replies2:
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
print(c.replies2)
cids = cids | set(x.id for x in c.replies2)
cids.update(x.id for x in c.replies2)
cids.add(c.id)
else:
while c.parent_comment: