forked from MarseyWorld/MarseyWorld
fix #2 here https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3853278#context
---- a lot of crawlers apparently request this page which causes a "too many requests" error for all logged-out ppl who try to visit itmaster
parent
a93c5ed0e5
commit
401b2f92e7
|
@ -384,7 +384,7 @@
|
||||||
|
|
||||||
{% endif %}
|
{% 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>
|
<a href="/votes/{{c.fullname}}" class="btn caction nobackground px-1 text-muted"><i class="fas fa-arrows-v"></i>Votes</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -589,7 +589,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<ul class="list-group comment-actions">
|
<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>
|
<a href="/votes/{{c.fullname}}"><li class="list-group-item"><i class="fas fa-arrows-v mr-2"></i>Votes</li></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% endif %}
|
{% 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>
|
<a class="list-inline-item" href="/votes/{{p.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue