sdf
This commit is contained in:
parent
3481db08c2
commit
a07e727cea
1 changed files with 3 additions and 2 deletions
|
@ -124,11 +124,12 @@ def notifications(v):
|
|||
listing = []
|
||||
for c in comments:
|
||||
if c.parent_submission:
|
||||
cids.add(c.id)
|
||||
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
||||
c = c.parent_comment
|
||||
c.replies2 = [x for x in c.child_comments if c.author_id == v.id or x.id in all]
|
||||
cids = cids | set(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.replies2 = [x for x in c.child_comments if c.author_id == v.id or x.id in all]
|
||||
cids = cids | set(x.id for x in c.replies2)
|
||||
c = c.parent_comment
|
||||
cids.add(c.id)
|
||||
else:
|
||||
while c.parent_comment:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue