add post_max_chars config option

This commit is contained in:
yggverse 2025-08-22 22:47:44 +03:00
parent d66dd6fe05
commit 0f9105d14a
4 changed files with 9 additions and 2 deletions

View file

@ -2,7 +2,9 @@
{% block content %}
{% if token %}
<form action="/submit" method="post">
<textarea name="message" placeholder="Enter your message..."></textarea>
<textarea name="message"
placeholder="Enter your message..."
{% if post_max_chars %}maxlength="{{ post_max_chars }}"{% endif %}></textarea>
<input type="hidden" name="token" value="{{ token }}" />
<input type="submit" value="Submit" />
</form>