master
Aevann1 2021-12-15 01:38:07 +02:00
parent 1c9567b240
commit fc1bf3e057
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ def searchposts(v):
domain=None
domain_obj=None
if request.headers.get("Authorization"): return {"data":[x.json for x in posts]}
if request.headers.get("Authorization"): return {"total":total, "data":[x.json for x in posts]}
else: return render_template("search.html",
v=v,
query=query,
@ -249,7 +249,7 @@ def searchcomments(v):
comments = get_comments(ids, v=v)
if request.headers.get("Authorization"): return {"data":[x.json for x in comments]}
if request.headers.get("Authorization"): return {"total":total, "data":[x.json for x in comments]}
else: return render_template("search_comments.html", v=v, query=query, total=total, page=page, comments=comments, sort=sort, t=t, next_exists=next_exists)