From 822fb1460acb551a740979e15026c622d8bbdffa Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Fri, 11 Sep 2015 21:27:06 +0200 Subject: [PATCH] Use absolute URL --- app/services/processor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/processor.py b/app/services/processor.py index 079b3fa..414c98e 100644 --- a/app/services/processor.py +++ b/app/services/processor.py @@ -74,6 +74,8 @@ def new_comment(data): content=message, created=created, published=None) comment.save() + article_url = = "http://" + site.url + url + # render email body template comment_list = ( 'author: %s' % author_name, @@ -87,7 +89,7 @@ def new_comment(data): ) comment_text = '\n'.join(comment_list) email_body = get_template('new_comment').render( - url=url, comment=comment_text) + url=article_url, comment=comment_text) # send email subject = '%s: [%d:%s]' % (site.name, comment.id, token)