forked from MarseyWorld/MarseyWorld
fsd
parent
5b73881849
commit
6a28bf1f8f
|
@ -131,14 +131,18 @@ def notifications(v):
|
|||
listing = []
|
||||
for c in comments:
|
||||
if c.parent_submission:
|
||||
if not c.replies2:
|
||||
if c.replies2 == None:
|
||||
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)
|
||||
for x in c.replies2:
|
||||
c.resplies2 = []
|
||||
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:
|
||||
if c.replies2 == None:
|
||||
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)
|
||||
for x in c.replies2:
|
||||
c.resplies2 = []
|
||||
cids.add(c.id)
|
||||
else:
|
||||
while c.parent_comment:
|
||||
|
|
Loading…
Reference in New Issue