mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 22:42:23 +01:00
More consistent config naming
This commit is contained in:
parent
94040b0798
commit
c00b484eff
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ class EmailConfig(Config):
|
||||||
self.email_template_dir = email_config["template_dir"]
|
self.email_template_dir = email_config["template_dir"]
|
||||||
self.email_notif_template_html = email_config["notif_template_html"]
|
self.email_notif_template_html = email_config["notif_template_html"]
|
||||||
self.email_notif_template_text = email_config["notif_template_text"]
|
self.email_notif_template_text = email_config["notif_template_text"]
|
||||||
self.email_notifs_for_new_users = email_config.get(
|
self.email_notif_for_new_users = email_config.get(
|
||||||
"notif_for_new_users", True
|
"notif_for_new_users", True
|
||||||
)
|
)
|
||||||
if "app_name" in email_config:
|
if "app_name" in email_config:
|
||||||
|
|
|
@ -221,7 +221,7 @@ class RegisterRestServlet(RestServlet):
|
||||||
# notifs are set up on a home server)
|
# notifs are set up on a home server)
|
||||||
if (
|
if (
|
||||||
self.hs.config.email_enable_notifs and
|
self.hs.config.email_enable_notifs and
|
||||||
self.hs.config.email_notifs_for_new_users
|
self.hs.config.email_notif_for_new_users
|
||||||
):
|
):
|
||||||
# Pull the ID of the access token back out of the db
|
# Pull the ID of the access token back out of the db
|
||||||
# It would really make more sense for this to be passed
|
# It would really make more sense for this to be passed
|
||||||
|
|
Loading…
Reference in a new issue