From 0941f7d6c01ec9a2f664d017480a321a8d9bf335 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 23 May 2012 11:08:05 -0400 Subject: fixed the Reply-To address for the comment reply for the question --- askbot/models/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 7228ca61..a87ab96d 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -2740,10 +2740,15 @@ def send_instant_notifications_about_activity_in_post( reply_addr = ReplyAddress.objects.create_new( **reply_args ).address + reply_to_with_comment = None elif post.post_type == 'question': reply_with_comment_address = ReplyAddress.objects.create_new( **reply_args ).address + reply_to_with_comment = 'reply-%s@%s' % ( + reply_addr, + askbot_settings.REPLY_BY_EMAIL_HOSTNAME + ) #default action is to post answer reply_args['reply_action'] = 'post_answer' reply_addr = ReplyAddress.objects.create_new( @@ -2762,7 +2767,7 @@ def send_instant_notifications_about_activity_in_post( to_user = user, from_user = update_activity.user, post = post, - reply_with_comment_address = reply_with_comment_address, + reply_with_comment_address = reply_to_with_comment, update_type = update_type, template = get_template('instant_notification.html') ) -- cgit v1.2.3-1-g7c22