xcv
This commit is contained in:
parent
d156253262
commit
47af7de093
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ def notifications(v):
|
||||||
if not posts:
|
if not posts:
|
||||||
listing = []
|
listing = []
|
||||||
all = set()
|
all = set()
|
||||||
for c in comments.reverse():
|
for c in comments:
|
||||||
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:
|
||||||
|
@ -133,7 +133,7 @@ def notifications(v):
|
||||||
all.add(c.id)
|
all.add(c.id)
|
||||||
listing.append(c)
|
listing.append(c)
|
||||||
|
|
||||||
listing = listing.reverse()
|
listing = listing
|
||||||
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}
|
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}
|
||||||
|
|
||||||
return render_template("notifications.html",
|
return render_template("notifications.html",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue