forked from mirrors/bookwyrm
Fixes content warnings on replies
This commit is contained in:
parent
7901da3b74
commit
cdab2cbf2c
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{% load i18n %}
|
||||
<div
|
||||
class="field{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
||||
class="field{% if not reply_parent.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
||||
id="spoilers_{{ uuid }}{{ local_uuid }}"
|
||||
>
|
||||
<label
|
||||
|
@ -16,7 +16,7 @@
|
|||
class="input"
|
||||
id="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
||||
placeholder="{% trans 'Spoilers ahead!' %}"
|
||||
value="{% firstof draft.content_warning parent_status.content_warning '' %}"
|
||||
value="{% firstof draft.content_warning reply_parent.content_warning '' %}"
|
||||
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
|
||||
>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue