fds
This commit is contained in:
parent
fb54ebeb13
commit
2d900867a1
1 changed files with 4 additions and 4 deletions
|
@ -133,16 +133,16 @@ def notifications(v):
|
|||
if c.parent_submission:
|
||||
if c.replies2 == None:
|
||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||
cids = cids | set(x.id for x in c.replies2)
|
||||
cids.update(x.id for x in c.replies2)
|
||||
for x in c.replies2:
|
||||
c.resplies2 = []
|
||||
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 c.replies2 == None:
|
||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(all))).all()
|
||||
cids = cids | set(x.id for x in c.replies2)
|
||||
cids.update(x.id for x in c.replies2)
|
||||
for x in c.replies2:
|
||||
c.resplies2 = []
|
||||
c.replies2 = []
|
||||
cids.add(c.id)
|
||||
else:
|
||||
while c.parent_comment:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue