diff --git a/bootcamp/feeds/views.py b/bootcamp/feeds/views.py index 7e7a478c7..ae1bc0ed0 100644 --- a/bootcamp/feeds/views.py +++ b/bootcamp/feeds/views.py @@ -187,7 +187,10 @@ def update(request): def track_comments(request): feed_id = request.GET.get('feed') feed = Feed.objects.get(pk=feed_id) - return render(request, 'feeds/partial_feed_comments.html', {'feed': feed}) + if len(feed.get_comments()) > 0: + return render(request, 'feeds/partial_feed_comments.html', {'feed': feed}) + else: + return HttpResponse() @login_required