Retain reading status on comments

This commit is contained in:
Mouse Reeve 2021-10-15 14:41:14 -07:00
parent eac1ed3484
commit a9daa4670e

View file

@ -33,6 +33,9 @@ reply_parent: the Status object this post will be in reply to, if applicable
<input type="hidden" name="book" value="{{ book.id }}"> <input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="user" value="{{ request.user.id }}"> <input type="hidden" name="user" value="{{ request.user.id }}">
<input type="hidden" name="reply_parent" value="{% firstof draft.reply_parent.id reply_parent.id %}"> <input type="hidden" name="reply_parent" value="{% firstof draft.reply_parent.id reply_parent.id %}">
{% if draft %}
<input type="hidden" name="reading_status" value="{{ draft.reading_status|default:'' }}">
{% endif %}
{% endblock %} {% endblock %}
{% include "snippets/create_status/content_warning_field.html" %} {% include "snippets/create_status/content_warning_field.html" %}