nnnnnnnnnnnn
parent
be3d6a5783
commit
b545d93d36
|
@ -94,7 +94,12 @@ def notifications(v):
|
|||
c.is_blocked = False
|
||||
c.is_blocking = False
|
||||
if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id:
|
||||
c.replies = []
|
||||
replies = []
|
||||
for x in c.replies:
|
||||
if x.author_id == v.id:
|
||||
x.voted = 1
|
||||
replies.append(x)
|
||||
c.replies = replies
|
||||
while c.parent_comment and c.parent_comment.author_id == v.id:
|
||||
parent = c.parent_comment
|
||||
if c not in parent.replies2:
|
||||
|
@ -105,7 +110,12 @@ def notifications(v):
|
|||
listing.append(c)
|
||||
c.replies = c.replies2
|
||||
elif c.parent_submission:
|
||||
c.replies = []
|
||||
replies = []
|
||||
for x in c.replies:
|
||||
if x.author_id == v.id:
|
||||
x.voted = 1
|
||||
replies.append(x)
|
||||
c.replies = replies
|
||||
if c not in listing:
|
||||
listing.append(c)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue