mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
send_email: Provide the realm and string_id, for ease of "if" logic.
This commit is contained in:
committed by
Tim Abbott
parent
c2c67a7640
commit
168e1d5f85
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user