# HG changeset patch # User neko259 # Date 2013-10-28 10:45:09 # Node ID 0f161354ecf163a77cc0149832427e44fd4c6e22 # Parent c4a9a9922c23fcb0caad611e271493ba6bae182d Fixed reflinks to threads parsing diff --git a/boards/mdx_neboard.py b/boards/mdx_neboard.py --- a/boards/mdx_neboard.py +++ b/boards/mdx_neboard.py @@ -45,7 +45,7 @@ class ReflinkPattern(Pattern): link = reverse(boards.views.thread, kwargs={'post_id': post.thread.id}) \ + '#' + post_id else: - link = reverse(boards.views.thread, post_id=post_id) + link = reverse(boards.views.thread, kwargs={'post_id': post_id}) ref_element.set('href', link) ref_element.text = m.group(2) diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -266,7 +266,7 @@ def jump_to_post(request, post_id): post = get_object_or_404(Post, id=post_id) if not post.thread: - return redirect(thread, post_id=post.id) + return redirect(thread, post_id=post.id) else: return redirect(reverse(thread, kwargs={'post_id': post.thread.id}) + '#' + str(post.id))