Add support for CW in comments (#308)

All the backend/federation code was already, I just added the UI 🤷‍♀️ 

Fixes #253
This commit is contained in:
Baptiste Gelez
2018-11-07 15:57:31 +01:00
committed by GitHub
parent b28411da99
commit a64c4912cf
5 changed files with 39 additions and 9 deletions
+9
View File
@@ -119,6 +119,15 @@
{% if account %}
<form method="post" action="{{ article.url }}comment">
{{ macros::input(
name="warning",
label="Content warning",
optional=true,
form=comment_form,
errors=comment_errors,
default=default)
}}
<label for="plume-editor">{{ "Your comment" | _ }}</label>
{% if previous %}
<input type="hidden" name="responding_to" value="{{ previous.id }}"/>