Make comment content required

This commit is contained in:
Kitaiti Makoto 2022-05-08 18:51:09 +09:00
parent 52cb7270a9
commit aa3e196b8f

View File

@ -155,7 +155,7 @@
@if let Some(ref prev) = previous_comment {
<input type="hidden" name="responding_to" value="@prev.id"/>
}
<textarea id="plume-editor" name="content" dir="auto">@comment_form.content</textarea>
<textarea id="plume-editor" name="content" dir="auto" required>@comment_form.content</textarea>
<input type="submit" value="@i18n!(ctx.1, "Submit comment")" />
</form>
}