----
a lot of crawlers apparently request this page which causes a "too many requests" error for all logged-out ppl who try to visit it
pull/142/head
Aevann 2023-03-24 13:56:27 +02:00
parent a93c5ed0e5
commit 401b2f92e7
2 changed files with 3 additions and 3 deletions

View File

@ -384,7 +384,7 @@
{% endif %}
{% if not c.ghost or (v and v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
{% if v and (not c.ghost or v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
<a href="/votes/{{c.fullname}}" class="btn caction nobackground px-1 text-muted"><i class="fas fa-arrows-v"></i>Votes</a>
{% endif %}
@ -589,7 +589,7 @@
<div class="modal-body">
<ul class="list-group comment-actions">
{% if not c.ghost or (v and v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
{% if v and (not c.ghost or v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
<a href="/votes/{{c.fullname}}"><li class="list-group-item"><i class="fas fa-arrows-v mr-2"></i>Votes</li></a>
{% endif %}

View File

@ -6,7 +6,7 @@
{% endif %}
{% if not p.ghost or (v and v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
{% if v and (not p.ghost or v.admin_level >= PERMS['SEE_GHOST_VOTES']) %}
<a class="list-inline-item" href="/votes/{{p.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a>
{% endif %}