master
Aevann1 2022-02-03 09:00:43 +02:00
parent 83928ab0db
commit e04a8ee5f3
2 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,6 @@ def get_logged_in_user():
g.db.add(v)
g.db.commit()
if v.hidevotedon: posts = [x for x in posts if not hasattr(x, 'voted') or not x.voted]
if v.agendaposter_expires_utc and v.agendaposter_expires_utc < time.time():
v.agendaposter_expires_utc = 0
v.agendaposter = None

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)