remotes/1693045480750635534/spooky-22
Aevann1 2021-09-01 17:06:07 +02:00
parent 35ac082380
commit fbb0f29ac2
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,6 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
secondrange = firstrange+200
posts = posts[firstrange:secondrange]
if v and v.hidevotedon: posts = [x for x in posts if not hasattr(x, 'voted') or not x.voted]
words = ['captainmeta4', ' cm4 ', 'dissident001', 'ladine']
for post in posts:
@ -222,6 +220,8 @@ def front_all(v):
posts = get_posts(ids, v=v)
if v and 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}
else: return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page)