organization settings: Clean up labels for custom time limits.

We make the text "minutes" agree with the number
in the input field.
In the future, we could make the units configurable
as in the invitation modal.

Fixes #34692.
This commit is contained in:
Kislay Verma
2025-06-14 12:15:47 +05:30
committed by Tim Abbott
parent d5e9d81957
commit 9507b7b36f
5 changed files with 59 additions and 12 deletions

View File

@@ -122,6 +122,8 @@ IGNORED_PHRASES = [
r"^cookie$",
# Used to refer custom time limits
r"\bN\b",
r"minute",
r"minutes",
# Capital c feels obtrusive in clear status option
r"clear",
r"group direct messages with \{recipient\}",
@@ -278,6 +280,8 @@ def check_banned_words(text: str) -> list[str]:
or "realm_uri" in lower_cased_text
or "realm_url" in lower_cased_text
or "remote_realm_host" in lower_cased_text
or "realm_message" in lower_cased_text
or "realm_move" in lower_cased_text
):
continue
kwargs = dict(word=word, text=text, reason=reason)