mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
send_email: Provide the realm and string_id, for ease of "if" logic.
This commit is contained in:
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,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user