send_email: Provide the realm and string_id, for ease of "if" logic.

This commit is contained in:
Alex Vandiver
2023-08-24 18:53:04 -04:00
committed by Tim Abbott
parent c2c67a7640
commit 168e1d5f85

View File

@@ -563,6 +563,8 @@ def send_custom_email(
if options.get("admins_only") and not user_profile.is_realm_admin:
continue
context: Dict[str, object] = {
"realm": user_profile.realm,
"realm_string_id": user_profile.realm.string_id,
"realm_uri": user_profile.realm.uri,
"realm_name": user_profile.realm.name,
}