-
- {% trans "Include spoiler alert" as button_text %}
- {% firstof draft.content_warning status.content_warning as pressed %}
- {% firstof local_uuid '' as local_uuid %}
- {% include 'snippets/toggle/toggle_button.html' with text=button_text icon="warning is-size-4" controls_text="spoilers" controls_uid=uuid|add:local_uuid focus="id_content_warning" checkbox="id_show_spoilers" class="toggle-button" pressed=pressed %}
-
diff --git a/bookwyrm/templates/snippets/create_status/layout.html b/bookwyrm/templates/snippets/create_status/layout.html
index 0585638d..915e5114 100644
--- a/bookwyrm/templates/snippets/create_status/layout.html
+++ b/bookwyrm/templates/snippets/create_status/layout.html
@@ -37,8 +37,6 @@ reply_parent: the Status object this post will be in reply to, if applicable
{% endif %}
{% endblock %}
- {% include "snippets/create_status/content_warning_field.html" %}
-
{# fields that go between the content warnings and the content field (ie, quote) #}
{% block pre_content_additions %}{% endblock %}
@@ -55,6 +53,8 @@ reply_parent: the Status object this post will be in reply to, if applicable
{# additional fields that go after the content block (ie, progress) #}
{% block post_content_additions %}{% endblock %}
+ {% include "snippets/create_status/content_warning_field.html" %}
+
{% block options_block %}
{# cw, post privacy, and submit button #}
{% include "snippets/create_status/post_options_block.html" %}
diff --git a/bookwyrm/templates/snippets/create_status/post_options_block.html b/bookwyrm/templates/snippets/create_status/post_options_block.html
index 17131532..652f8adb 100644
--- a/bookwyrm/templates/snippets/create_status/post_options_block.html
+++ b/bookwyrm/templates/snippets/create_status/post_options_block.html
@@ -1,8 +1,6 @@
{% load i18n %}
-
-
- {% include "snippets/create_status/content_warning_toggle.html" %}
-
+
+
{% if type == 'direct' %}
@@ -13,13 +11,11 @@
{% include 'snippets/privacy_select.html' with current=reply_parent.privacy %}
{% endif %}
{% endif %}
-
-
+
-
diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py
index 5dc8e8fa..af15064f 100644
--- a/bookwyrm/views/status.py
+++ b/bookwyrm/views/status.py
@@ -85,9 +85,7 @@ class CreateStatus(View):
if hasattr(status, "quote"):
status.raw_quote = status.quote
- if not status.sensitive and status.content_warning:
- # the cw text field remains populated when you click "remove"
- status.content_warning = None
+ status.sensitive = status.content_warning not in [None, ""]
status.save(broadcast=False)
# inspect the text for user tags