sdf
parent
82ef880372
commit
c01fba844c
|
@ -95,7 +95,15 @@ def notifications(v):
|
||||||
c.is_blocked = False
|
c.is_blocked = False
|
||||||
c.is_blocking = False
|
c.is_blocking = False
|
||||||
if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id:
|
if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id:
|
||||||
|
|
||||||
|
for x in c.replies:
|
||||||
|
if x.author_id == v.id:
|
||||||
|
x.voted = 1
|
||||||
|
replies.append(x)
|
||||||
|
c.replies2 = replies
|
||||||
|
|
||||||
c.replies = []
|
c.replies = []
|
||||||
|
|
||||||
while c.parent_comment and c.parent_comment.author_id == v.id:
|
while c.parent_comment and c.parent_comment.author_id == v.id:
|
||||||
parent = c.parent_comment
|
parent = c.parent_comment
|
||||||
if c not in parent.replies2:
|
if c not in parent.replies2:
|
||||||
|
@ -106,7 +114,14 @@ def notifications(v):
|
||||||
listing.append(c)
|
listing.append(c)
|
||||||
c.replies = c.replies2
|
c.replies = c.replies2
|
||||||
elif c.parent_submission:
|
elif c.parent_submission:
|
||||||
|
for x in c.replies:
|
||||||
|
if x.author_id == v.id:
|
||||||
|
x.voted = 1
|
||||||
|
replies.append(x)
|
||||||
|
c.replies2 = replies
|
||||||
|
|
||||||
c.replies = []
|
c.replies = []
|
||||||
|
|
||||||
if c not in listing:
|
if c not in listing:
|
||||||
listing.append(c)
|
listing.append(c)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue