summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/models/__init__.py12
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,