forked from MarseyWorld/MarseyWorld
fsd
parent
781a8beda8
commit
9fb785500c
|
@ -134,6 +134,8 @@ def notifications(v):
|
|||
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:
|
||||
if x.replies2 == None: x.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:
|
||||
|
|
Loading…
Reference in New Issue