Aevann 2023-04-28 11:07:28 +02:00
parent 38bd91a20a
commit d8af55068b
4 changed files with 22 additions and 21 deletions

View File

@ -1135,3 +1135,22 @@ Eventually it'll be too much to bear - you'll buy a rope, tie a noose, put it ar
This is your fate. This is what you chose. There is no turning back.
"""
CHUD_PHRASES = (
"Trans lives matter",
"Black lives matter",
"Black trans lives matter",
"The future is female",
"I say this as a feminist ally",
"I stand with israel",
"Vaccines work",
"Trans women are women",
"Furry rights are human rights",
"Trans furry lives matter",
"Trump for prison",
"Hillary 2024",
"Jewish lives matter",
"White extinction is long overdue",
"Climate action now",
"Long live the CCP"
)

View File

@ -322,8 +322,8 @@ def award_thing(v, thing_type, id):
if not note: abort(400, "Missing phrase!")
if len(note) > 35:
abort(400, "Max length for phrase is 35 characters!")
if note not in CHUD_PHRASES:
abort(400, "Invalid phrase!")
author.agendaposter_phrase = note.lower()

View File

@ -138,4 +138,5 @@ def inject_constants():
"BIO_FRIENDS_ENEMIES_LENGTH_LIMIT":BIO_FRIENDS_ENEMIES_LENGTH_LIMIT,
"IMMUNE_TO_AWARDS": IMMUNE_TO_AWARDS, "SITE_FULL_IMAGES": SITE_FULL_IMAGES,
"IS_FISTMAS":IS_FISTMAS, "IS_HOMOWEEN":IS_HOMOWEEN, "IS_DKD":IS_DKD, "IS_EVENT":IS_EVENT,
"CHUD_PHRASES":CHUD_PHRASES,
}

View File

@ -39,25 +39,6 @@
</div>
<input autocomplete="off" id="kind" hidden>
{% set CHUD_PHRASES = [
"Trans lives matter",
"Black lives matter",
"Black trans lives matter",
"The future is female",
"I say this as a feminist ally",
"I stand with israel",
"Vaccines work",
"Trans women are women",
"Furry rights are human rights",
"Trans furry lives matter",
"Trump for prison",
"Hillary 2024",
"Jewish lives matter",
"White extinction is long overdue",
"Climate action now",
"Long live the CCP",
] %}
<div id="phrase_section" class="d-none">
<label for="note" class="pt-4">The phrase the recipient will have to say:</label>