diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 11:08:05 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 11:08:05 -0400 |
commit | 0941f7d6c01ec9a2f664d017480a321a8d9bf335 (patch) | |
tree | f3d6b85137fd9e813e90288d96b1b869ce720a39 | |
parent | 16a7963a9d7002730b97fd6cd7c418622befd609 (diff) | |
download | askbot-0941f7d6c01ec9a2f664d017480a321a8d9bf335.tar.gz askbot-0941f7d6c01ec9a2f664d017480a321a8d9bf335.tar.bz2 askbot-0941f7d6c01ec9a2f664d017480a321a8d9bf335.zip |
fixed the Reply-To address for the comment reply for the question
-rw-r--r-- | askbot/models/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
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') ) |