summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-13 11:36:50 +0100
committerDavid Baker <dave@matrix.org>2016-05-13 11:36:50 +0100
commitb5e646a18ce2a293e5d35dcb560ba50183a87429 (patch)
treeeca5cc5ccfa049e7a5bd571ff170b7819c426ecd /synapse/push
parentMerge pull request #777 from matrix-org/markjh/move_filter_for_client (diff)
downloadsynapse-b5e646a18ce2a293e5d35dcb560ba50183a87429.tar.xz
Make email notifs work on the pusher synapse
Plus general bugfix to email notif code
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/mailer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py
index 5d60c1efcf..2be294f52e 100644
--- a/synapse/push/mailer.py
+++ b/synapse/push/mailer.py
@@ -397,6 +397,7 @@ class Mailer(object):
             return ""
 
         serverAndMediaId = value[6:]
+        fragment = None
         if '#' in serverAndMediaId:
             (serverAndMediaId, fragment) = serverAndMediaId.split('#', 1)
             fragment = "#" + fragment