Use correct templates

This commit is contained in:
justcool393 2023-07-23 07:22:50 -05:00
parent 1bfc09cc1f
commit 931a5037e2

View file

@ -935,13 +935,14 @@ 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(
u=v, "userpage_submissions.html",
v=v, u=v,
listing=listing, v=v,
page=page, listing=listing,
next_exists=next_exists, page=page,
) next_exists=next_exists,
)
@app.get("/@<username>/saved/comments") @app.get("/@<username>/saved/comments")
@ -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(
u=v, "userpage.html",
v=v, u=v,
listing=listing, v=v,
page=page, listing=listing,
next_exists=next_exists, page=page,
standalone=True) next_exists=next_exists,
standalone=True
)
@app.post("/fp/<fp>") @app.post("/fp/<fp>")