[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)
unsubscribe_link = (
config['root_url']
+ 'api/'
+ self.model.id
+ '/email/unsubscribe/'
+ 'api/hoods/%d/email/unsubscribe/' % self.hood.id
+ token
)
message.text += (