# HG changeset patch # User neko259 # Date 2015-05-31 20:40:53 # Node ID fdd4e78e6afac511f9d8991bc409c8b24244d1a7 # Parent d0993847ea94476114bd3a5431c131600ea3bd60 Don't show reply link in the tree view. Fixed thread diff test after the thread id parameter was moved to POST dict. diff --git a/boards/templates/boards/thread_tree.html b/boards/templates/boards/thread_tree.html --- a/boards/templates/boards/thread_tree.html +++ b/boards/templates/boards/thread_tree.html @@ -11,7 +11,7 @@
{% for post in thread.get_top_level_replies %} - {% post_view post moderator=moderator reply_link=True mode_tree=True %} + {% post_view post moderator=moderator mode_tree=True %} {% endfor %}
diff --git a/boards/tests/test_api.py b/boards/tests/test_api.py --- a/boards/tests/test_api.py +++ b/boards/tests/test_api.py @@ -15,7 +15,7 @@ class ApiTest(TestCase): tags=[tag]) req = MockRequest() - req.GET['thread'] = opening_post.id + req.POST['thread'] = opening_post.id req.POST['uids'] = opening_post.uid # Check the exact timestamp post was added empty_response = api.api_get_threaddiff(req) @@ -29,7 +29,7 @@ class ApiTest(TestCase): text='[post]%d[/post]\ntext' % opening_post.id, thread=opening_post.get_thread()) req = MockRequest() - req.GET['thread'] = opening_post.id + req.POST['thread'] = opening_post.id req.POST['uids'] = ' '.join(uids) # Check the timestamp before post was added response = api.api_get_threaddiff(req) @@ -40,7 +40,7 @@ class ApiTest(TestCase): # Reload post to get the new UID opening_post = Post.objects.get(id=opening_post.id) req = MockRequest() - req.GET['thread'] = opening_post.id + req.POST['thread'] = opening_post.id req.POST['uids'] = ' '.join([opening_post.uid, reply.uid]) empty_response = api.api_get_threaddiff(req) diff = simplejson.loads(empty_response.content)