media_home: order comments by ascending date.
[mediagoblin.git] / mediagoblin / user_pages / views.py
index 82865bb412ffc722a9ef9e3172f639184abcc366..98a21bb45a51c631515e6dfa2c2e69e6cf65bc9b 100644 (file)
@@ -106,11 +106,11 @@ def media_home(request, media, page, **kwargs):
     """
     if ObjectId(request.matchdict.get('comment')):
         pagination = Pagination(
-            page, media.get_comments(), MEDIA_COMMENTS_PER_PAGE,
+            page, media.get_comments(True), MEDIA_COMMENTS_PER_PAGE,
             ObjectId(request.matchdict.get('comment')))
     else:
         pagination = Pagination(
-            page, media.get_comments(), MEDIA_COMMENTS_PER_PAGE)
+            page, media.get_comments(True), MEDIA_COMMENTS_PER_PAGE)
 
     comments = pagination()