Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
send_email: Provide the realm and string_id, for ease of "if" logic.
Alex Vandiver168e1d5f85df
diff --git a/zerver/lib/send_email.py b/zerver/lib/send_email.pyindex 9d47a3b59a3..124219d78a9 100644--- a/zerver/lib/send_email.py+++ b/zerver/lib/send_email.py@@ -563,6 +563,8 @@ def send_custom_email(if options.get("admins_only") and not user_profile.is_realm_admin:continuecontext: 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,}