Use correct templates
This commit is contained in:
parent
1bfc09cc1f
commit
931a5037e2
1 changed files with 17 additions and 14 deletions
|
@ -935,7 +935,8 @@ def saved_posts(v, username):
|
||||||
listing = get_posts(ids, v=v, eager=True)
|
listing = get_posts(ids, v=v, eager=True)
|
||||||
|
|
||||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||||
return render_template("userpage.html",
|
return render_template(
|
||||||
|
"userpage_submissions.html",
|
||||||
u=v,
|
u=v,
|
||||||
v=v,
|
v=v,
|
||||||
listing=listing,
|
listing=listing,
|
||||||
|
@ -959,13 +960,15 @@ def saved_comments(v, username):
|
||||||
|
|
||||||
|
|
||||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||||
return render_template("userpage_comments.html",
|
return render_template(
|
||||||
|
"userpage.html",
|
||||||
u=v,
|
u=v,
|
||||||
v=v,
|
v=v,
|
||||||
listing=listing,
|
listing=listing,
|
||||||
page=page,
|
page=page,
|
||||||
next_exists=next_exists,
|
next_exists=next_exists,
|
||||||
standalone=True)
|
standalone=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/fp/<fp>")
|
@app.post("/fp/<fp>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue