summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-29 03:53:19 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-29 03:53:19 -0400
commitd7cd45432b5773717cb416fab2e8207b569e6de5 (patch)
treeda0c74eb9c10af476114733e9e5271ef1306f084
parentacab77ccc328a869a6f106fe91c969c17efee0cf (diff)
downloadaskbot-d7cd45432b5773717cb416fab2e8207b569e6de5.tar.gz
askbot-d7cd45432b5773717cb416fab2e8207b569e6de5.tar.bz2
askbot-d7cd45432b5773717cb416fab2e8207b569e6de5.zip
omitted editing title from "append" content type emails on questions
-rw-r--r--askbot/mail/lamson_handlers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/mail/lamson_handlers.py b/askbot/mail/lamson_handlers.py
index d803dcf2..7ecdb0a9 100644
--- a/askbot/mail/lamson_handlers.py
+++ b/askbot/mail/lamson_handlers.py
@@ -290,8 +290,10 @@ def PROCESS(
#4) actually make an edit in the forum
robj = reply_address_object
add_post_actions = ('post_comment', 'post_answer', 'auto_answer_or_comment')
- if robj.reply_action in ('replace_content', 'append_content'):
+ if robj.reply_action == 'replace_content':
robj.edit_post(body_text, title = subject_line)
+ elif robj.reply_action == 'append_content':
+ robj.edit_post(body_text)#in this case we don't touch the title
elif robj.reply_action in add_post_actions:
if robj.was_used:
robj.edit_post(body_text, reply_action = 'append_content')