aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/comment.py')
-rw-r--r--libbe/command/comment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/command/comment.py b/libbe/command/comment.py
index b269840..5bf6acf 100644
--- a/libbe/command/comment.py
+++ b/libbe/command/comment.py
@@ -150,8 +150,8 @@ class Comment (libbe.command.Command):
if params['author'] == None:
params['author'] = self._get_user_id()
- new = parent.new_reply(body=body)
- for key in ['alt-id', 'author', 'content-type']:
+ new = parent.new_reply(body=body, content_type=params['content-type'])
+ for key in ['alt-id', 'author']:
if params[key] != None:
setattr(new, new._setting_name_to_attr_name(key), params[key])
print >> self.stdout, 'Created comment with ID %s' % new.id.user()