From 88b77ffa2d0535288050adbbbdda7b9ef8550580 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Mon, 9 Sep 2013 14:14:27 +0200 Subject: [PATCH] show markdown by default --- isso/views/comment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isso/views/comment.py b/isso/views/comment.py index ca4a5ae..eef5342 100644 --- a/isso/views/comment.py +++ b/isso/views/comment.py @@ -93,12 +93,12 @@ def get(app, environ, request, uri): if not rv: abort(404) - if request.args.get('plain', '1') == '0': + if request.args.get('plain', '0') == '0': if isinstance(rv, list): for item in rv: - item.text = app.markdown(item.text) + item['text'] = app.markdown(item['text']) else: - rv.text = app.markdown(rv.text) + rv['text'] = app.markdown(rv['text']) return Response(app.dumps(rv), 200, content_type='application/json')