fix granny bug

pull/114/head
Aevann 2023-02-06 07:42:11 +02:00
parent b600303a0b
commit 38183e05fb
3 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ def user_voted(v, username, cls, vote_cls, template, standalone):
else:
listing = []
return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, u=u, standalone=standalone)
return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, standalone=standalone)
@app.get("/@<username>/voted/posts")
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)

View File

@ -1,5 +1,5 @@
{% extends "userpage/voted_posts.html" %}
{% block pagetitle %}Comments @{{u.username}} voted on{% endblock %}
{% block pagetitle %}Comments{% endblock %}
{% block listing %}
<div class="posts">
{% with comments=listing %}

View File

@ -3,7 +3,7 @@
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block pagetitle %}Posts @{{u.username}} voted on{% endblock %}
{% block pagetitle %}Posts{% endblock %}
{% block content %}
<ul class="nav post-nav py-2">
<li class="nav-item">