diff options
author | Erik Johnston <erik@matrix.org> | 2017-02-02 10:53:36 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-02-02 10:53:36 +0000 |
commit | 51adaac953c00ee59101a71de6162cde4a0e0a86 (patch) | |
tree | 2c303e7eda397feec27f93fe6a5e678c03e0b0e5 /synapse/push/mailer.py | |
parent | Merge pull request #1872 from matrix-org/erikj/key_changes (diff) | |
download | synapse-51adaac953c00ee59101a71de6162cde4a0e0a86.tar.xz |
Fix email push in pusher worker
This was broken when device list updates were implemented, as Mailer could no longer instantiate an AuthHandler due to a dependency on federation sending.
Diffstat (limited to 'synapse/push/mailer.py')
-rw-r--r-- | synapse/push/mailer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index ce2d31fb98..62d794f22b 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -81,7 +81,7 @@ class Mailer(object): def __init__(self, hs, app_name): self.hs = hs self.store = self.hs.get_datastore() - self.auth_handler = self.hs.get_auth_handler() + self.macaroon_gen = self.hs.get_macaroon_generator() self.state_handler = self.hs.get_state_handler() loader = jinja2.FileSystemLoader(self.hs.config.email_template_dir) self.app_name = app_name @@ -466,7 +466,7 @@ class Mailer(object): def make_unsubscribe_link(self, user_id, app_id, email_address): params = { - "access_token": self.auth_handler.generate_delete_pusher_token(user_id), + "access_token": self.macaroon_gen.generate_delete_pusher_token(user_id), "app_id": app_id, "pushkey": email_address, } |