fsfs
This commit is contained in:
parent
9b4f03a478
commit
d29014a3a6
15 changed files with 140 additions and 140 deletions
|
@ -161,7 +161,7 @@ def searchposts(v):
|
|||
domain_obj=None
|
||||
|
||||
if request.headers.get("Authorization"): return {"total":total, "data":[x.json for x in posts]}
|
||||
if v and v.oldsite: template = ''
|
||||
if not v or v.oldsite: template = ''
|
||||
else: template = 'CHRISTMAS/'
|
||||
return render_template(f"{template}search.html",
|
||||
v=v,
|
||||
|
@ -253,7 +253,7 @@ def searchcomments(v):
|
|||
comments = get_comments(ids, v=v)
|
||||
|
||||
if request.headers.get("Authorization"): return {"total":total, "data":[x.json for x in comments]}
|
||||
if v and v.oldsite: template = ''
|
||||
if not v or v.oldsite: template = ''
|
||||
else: template = 'CHRISTMAS/'
|
||||
return render_template(f"{template}search_comments.html", v=v, query=query, total=total, page=page, comments=comments, sort=sort, t=t, next_exists=next_exists)
|
||||
|
||||
|
@ -284,6 +284,6 @@ def searchusers(v):
|
|||
|
||||
|
||||
if request.headers.get("Authorization"): return [x.json for x in users]
|
||||
if v and v.oldsite: template = ''
|
||||
if not v or v.oldsite: template = ''
|
||||
else: template = 'CHRISTMAS/'
|
||||
return render_template(f"{template}search_users.html", v=v, query=query, total=total, page=page, users=users, sort=sort, t=t, next_exists=next_exists)
|
Loading…
Add table
Add a link
Reference in a new issue