This commit is contained in:
Aevann1 2022-01-31 05:33:43 +02:00
parent d156253262
commit 47af7de093

View file

@ -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",