This commit is contained in:
Beverly Nguyen
2025-03-24 12:48:28 -07:00
parent 7e2a2bad8e
commit 1a5f255539
3 changed files with 71 additions and 6 deletions

View File

@@ -698,7 +698,9 @@ def _get_content_count_error_and_message_for_template(template):
# Check for blocked characters
if contains_blocked_characters(template.content):
warning = f"{s1}{s2}"
return False, Markup(warning) # 🚨 ONLY show the warning, hiding "Will be charged..."
return False, Markup(
warning
) # 🚨 ONLY show the warning, hiding "Will be charged..."
# If message is too long, return the length error
if template.is_message_too_long():