diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 10:48:59 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 10:48:59 -0400 |
commit | 16a7963a9d7002730b97fd6cd7c418622befd609 (patch) | |
tree | dc65cffa0e06d6574443c72490ad0676b0b97235 | |
parent | 123d971362831f7d5fdd07a16c29d43225738c23 (diff) | |
download | askbot-16a7963a9d7002730b97fd6cd7c418622befd609.tar.gz askbot-16a7963a9d7002730b97fd6cd7c418622befd609.tar.bz2 askbot-16a7963a9d7002730b97fd6cd7c418622befd609.zip |
fixed bug with wrong reply address in the instant email notification
-rw-r--r-- | askbot/models/__init__.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 0855abcd..7228ca61 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -2737,12 +2737,18 @@ def send_instant_notifications_about_activity_in_post( 'reply_action': 'post_comment' } if post.post_type in ('answer', 'comment'): - reply_addr = ReplyAddress.objects.create_new(**reply_args) + reply_addr = ReplyAddress.objects.create_new( + **reply_args + ).address elif post.post_type == 'question': - reply_with_comment_address = ReplyAddress.objects.create_new(**reply_args) + reply_with_comment_address = ReplyAddress.objects.create_new( + **reply_args + ).address #default action is to post answer reply_args['reply_action'] = 'post_answer' - reply_addr = ReplyAddress.objects.create_new(**reply_args) + reply_addr = ReplyAddress.objects.create_new( + **reply_args + ).address reply_to = 'reply-%s@%s' % ( reply_addr, |