diff --git a/views.py b/views.py index 3046486..416caea 100644 --- a/views.py +++ b/views.py @@ -554,7 +554,7 @@ def add_comment(request, post_id, parent_id): comment_index = str(len(comments)) for comment in comments: email = comment.email - if email != '' and not email in emails: + if email != '' and email != request.POST['email'] and not email in emails: emails[email] = comment.author if len(emails) > 0: @@ -572,7 +572,7 @@ def add_comment(request, post_id, parent_id): html_body = u'' html_body += u'Bonjour %s,

Un nouveau commentaire a été posté pour l\'article "%s".

' % (author, post.title) - html_body = html_body + u'Pour le consulter, rendez vous sur http://%s/%s#comment_%s

----------------
'  % (blog.name, post.getPath(), comment_index, blog.name, post.getPath(), comment_index)
+            html_body = html_body + u'Pour le consulter, rendez vous sur http://%s%s#comment_%s

----------------
'  % (blog.name, post.getPath(), comment_index, blog.name, post.getPath(), comment_index)
             c = comment.the_comment
             # Avoid script injection
             c = c.replace('
', '<pre>')