Use absolute URL
This commit is contained in:
parent
5c934e51fd
commit
11ab7b67c3
1 changed files with 3 additions and 1 deletions
|
@ -74,6 +74,8 @@ def new_comment(data):
|
||||||
content=message, created=created, published=None)
|
content=message, created=created, published=None)
|
||||||
comment.save()
|
comment.save()
|
||||||
|
|
||||||
|
article_url = = "http://" + site.url + url
|
||||||
|
|
||||||
# render email body template
|
# render email body template
|
||||||
comment_list = (
|
comment_list = (
|
||||||
'author: %s' % author_name,
|
'author: %s' % author_name,
|
||||||
|
@ -87,7 +89,7 @@ def new_comment(data):
|
||||||
)
|
)
|
||||||
comment_text = '\n'.join(comment_list)
|
comment_text = '\n'.join(comment_list)
|
||||||
email_body = get_template('new_comment').render(
|
email_body = get_template('new_comment').render(
|
||||||
url=url, comment=comment_text)
|
url=article_url, comment=comment_text)
|
||||||
|
|
||||||
# send email
|
# send email
|
||||||
subject = '%s: [%d:%s]' % (site.name, comment.id, token)
|
subject = '%s: [%d:%s]' % (site.name, comment.id, token)
|
||||||
|
|
Loading…
Add table
Reference in a new issue