mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-02 12:22:22 +00:00
Updates wording on content warning field
This commit is contained in:
parent
bcd83ee802
commit
cc2b774fb5
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue