potentially fix logged out users getting an internal server error
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
<input class="warn" type="submit" value="{{"Unlock thread" if thread.is_locked else "Lock thread"}}">
|
<input class="warn" type="submit" value="{{"Unlock thread" if thread.is_locked else "Lock thread"}}">
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if active_user.is_mod() %}
|
{% if active_user and active_user.is_mod() %}
|
||||||
<form class="modform" action="{{ url_for("threads.sticky", slug=thread.slug) }}" method="post">
|
<form class="modform" action="{{ url_for("threads.sticky", slug=thread.slug) }}" method="post">
|
||||||
<input type=hidden name='target_op' value="{{ (not thread.is_stickied) | int }}">
|
<input type=hidden name='target_op' value="{{ (not thread.is_stickied) | int }}">
|
||||||
<input class="warn" type="submit" value="{{"Unsticky thread" if thread.is_stickied else "Sticky thread"}}">
|
<input class="warn" type="submit" value="{{"Unsticky thread" if thread.is_stickied else "Sticky thread"}}">
|
||||||
|
Reference in New Issue
Block a user