Updates wording on content warning field

This commit is contained in:
Mouse Reeve 2022-03-10 09:16:50 -08:00
parent bcd83ee802
commit cc2b774fb5
2 changed files with 3 additions and 5 deletions

View file

@ -8,14 +8,14 @@
<span> <span>
{% trans "Include spoiler alert" %} {% trans "Include spoiler alert" %}
</span> </span>
<span class="details-close icon icon-plus" aria-hidden="true"></span> <span class="details-close icon icon-x" aria-hidden="true"></span>
</summary> </summary>
<label <label
class="label" class="label"
for="id_content_warning_{{ uuid }}{{ local_uuid }}" for="id_content_warning_{{ uuid }}{{ local_uuid }}"
> >
{% trans "Content warning:" %} {% trans "Spoilers/content warnings:" %}
</label> </label>
<div class="control"> <div class="control">
<input <input

View file

@ -85,9 +85,7 @@ class CreateStatus(View):
if hasattr(status, "quote"): if hasattr(status, "quote"):
status.raw_quote = status.quote status.raw_quote = status.quote
if not status.sensitive and status.content_warning: status.sensitive = status.content_warning not in [None, ""]
# the cw text field remains populated when you click "remove"
status.content_warning = None
status.save(broadcast=False) status.save(broadcast=False)
# inspect the text for user tags # inspect the text for user tags