sf
This commit is contained in:
parent
0281c15b77
commit
5d4b9e3eda
1 changed files with 3 additions and 6 deletions
|
@ -95,12 +95,10 @@ 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:
|
for x in c.replies:
|
||||||
if x.author_id == v.id:
|
if x.author_id == v.id:
|
||||||
x.voted = 1
|
x.voted = 1
|
||||||
replies.append(x)
|
c.replies2.append(x)
|
||||||
c.replies2 = replies
|
|
||||||
|
|
||||||
c.replies = []
|
c.replies = []
|
||||||
|
|
||||||
|
@ -117,8 +115,7 @@ def notifications(v):
|
||||||
for x in c.replies:
|
for x in c.replies:
|
||||||
if x.author_id == v.id:
|
if x.author_id == v.id:
|
||||||
x.voted = 1
|
x.voted = 1
|
||||||
replies.append(x)
|
c.replies2.append(x)
|
||||||
c.replies2 = replies
|
|
||||||
|
|
||||||
c.replies = []
|
c.replies = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue