[email] Fix unsubscribe link
This commit is contained in:
parent
668b702735
commit
9a6edd5fa2
|
@ -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 += (
|
||||||
|
|
Loading…
Reference in a new issue