Make email notifs work on the pusher synapse

Plus general bugfix to email notif code
This commit is contained in:
David Baker 2016-05-13 11:36:50 +01:00
parent 048b3ece36
commit b5e646a18c
2 changed files with 48 additions and 0 deletions

View file

@ -397,6 +397,7 @@ class Mailer(object):
return ""
serverAndMediaId = value[6:]
fragment = None
if '#' in serverAndMediaId:
(serverAndMediaId, fragment) = serverAndMediaId.split('#', 1)
fragment = "#" + fragment