fix granny bug
parent
b600303a0b
commit
38183e05fb
|
@ -162,7 +162,7 @@ def user_voted(v, username, cls, vote_cls, template, standalone):
|
||||||
else:
|
else:
|
||||||
listing = []
|
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")
|
@app.get("/@<username>/voted/posts")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "userpage/voted_posts.html" %}
|
{% extends "userpage/voted_posts.html" %}
|
||||||
{% block pagetitle %}Comments @{{u.username}} voted on{% endblock %}
|
{% block pagetitle %}Comments{% endblock %}
|
||||||
{% block listing %}
|
{% block listing %}
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{% with comments=listing %}
|
{% with comments=listing %}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block desktopBanner %}{% endblock %}
|
{% block desktopBanner %}{% endblock %}
|
||||||
{% block desktopUserBanner %}{% endblock %}
|
{% block desktopUserBanner %}{% endblock %}
|
||||||
{% block mobileUserBanner %}{% endblock %}
|
{% block mobileUserBanner %}{% endblock %}
|
||||||
{% block pagetitle %}Posts @{{u.username}} voted on{% endblock %}
|
{% block pagetitle %}Posts{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul class="nav post-nav py-2">
|
<ul class="nav post-nav py-2">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|
Loading…
Reference in New Issue