This commit is contained in:
Aevann1 2022-02-03 09:00:43 +02:00
parent 43cdc4976f
commit a776474f22
2 changed files with 2 additions and 2 deletions

View file

@ -185,6 +185,8 @@ def front_all(v):
)
posts = get_posts(ids, v=v)
if v.hidevotedon: posts = [x for x in posts if not hasattr(x, 'voted') or not x.voted]
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page, ccmode=ccmode)