forked from MarseyWorld/MarseyWorld
fsd\
parent
83928ab0db
commit
e04a8ee5f3
|
@ -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…
Reference in New Issue