From: hernani Date: Sat, 1 Jan 2011 18:36:59 +0000 (+0000) Subject: Fixes comment edit, which was being performed against already parsed markdown. X-Git-Tag: live~475 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/ebcd401830c8088d581c91e28f83b134d075ad18?ds=inline Fixes comment edit, which was being performed against already parsed markdown. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@659 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/commands.py b/forum/views/commands.py index fcdd056..191cae0 100644 --- a/forum/views/commands.py +++ b/forum/views/commands.py @@ -284,7 +284,7 @@ def node_markdown(request, id): raise AnonymousNotAllowedException(_('accept answers')) node = get_object_or_404(Node, id=id) - return HttpResponse(node.body, mimetype="text/plain") + return HttpResponse(node.active_revision.body, mimetype="text/plain") @decorate.withfn(command)