re-add subscriptions

This commit is contained in:
2025-07-01 23:20:36 +03:00
parent 52f6484db1
commit 29bb9872d3
7 changed files with 210 additions and 10 deletions

View File

@ -20,6 +20,11 @@
</span>
<div>
{% if can_subscribe %}
<form class="modform" action="{{ url_for('threads.subscribe', slug=thread.slug) }}" method="post">
<input type='hidden' name='last_visible_post' value='{{posts[-1].id}}'>
<input type='hidden' name='subscribe' value='{{ 'unsubscribe' if is_subscribed else 'subscribe' }}'>
<input type='submit' value='{{ 'Unsubscribe' if is_subscribed else 'Subscribe' }}'>
</form>
{% endif %}
{% if can_lock %}
<form class="modform" action="{{ url_for("threads.lock", slug=thread.slug) }}" method="post">