fdsfds
This commit is contained in:
parent
ff0c07e70b
commit
74cdce0ce2
1 changed files with 3 additions and 1 deletions
|
@ -134,7 +134,9 @@ def notifications(v):
|
|||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(cids))).all()
|
||||
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.id in cids):
|
||||
count = 0
|
||||
while count < 5 and c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment.id in cids):
|
||||
count += 1
|
||||
c = c.parent_comment
|
||||
if c.replies2 == None:
|
||||
c.replies2 = c.child_comments.filter(or_(Comment.author_id == v.id, Comment.id.in_(cids))).all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue