[email] Fix unsubscribe link

This commit is contained in:
maike 2020-07-12 16:58:45 +02:00 committed by dl6tom
parent 668b702735
commit 9a6edd5fa2

View file

@ -28,9 +28,7 @@ class EmailBot(Censor):
token = to_token(email=subscriber.email, hood=self.hood.id) token = to_token(email=subscriber.email, hood=self.hood.id)
unsubscribe_link = ( unsubscribe_link = (
config['root_url'] config['root_url']
+ 'api/' + 'api/hoods/%d/email/unsubscribe/' % self.hood.id
+ self.model.id
+ '/email/unsubscribe/'
+ token + token
) )
message.text += ( message.text += (