sfd
This commit is contained in:
parent
e98f600460
commit
855fd0be5d
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ def notifications(v):
|
||||||
for c in comments:
|
for c in comments:
|
||||||
if c.parent_submission:
|
if c.parent_submission:
|
||||||
if not c.replies2:
|
if not c.replies2:
|
||||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id)).all()
|
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 = 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):
|
while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments):
|
||||||
c = c.parent_comment
|
c = c.parent_comment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue