fsd\
This commit is contained in:
parent
43cdc4976f
commit
a776474f22
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue