forked from MarseyWorld/MarseyWorld
fdsfsd
parent
1c9567b240
commit
fc1bf3e057
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue