Do not list all comments when exporting filtered comments.
authorgibus
Mon, 28 Jan 2013 10:44:48 +0100
changeset 493 32c402ed2f14
parent 492 5b5245f4fe9a
child 494 6b3d72136e85
Do not list all comments when exporting filtered comments.
src/cm/views/texts.py
--- a/src/cm/views/texts.py	Mon Jan 28 01:20:52 2013 +0100
+++ b/src/cm/views/texts.py	Mon Jan 28 10:44:48 2013 +0100
@@ -401,7 +401,7 @@
         marked_content = insert_comment_markers(wrapped_text_version, comments, with_markers, with_color)
         # Prepends title
         marked_content = "<h1>%s</h1>%s" %(text_version.title, marked_content)
-        viewable_comments = comments_thread(request, text_version, text) 
+        viewable_comments = [x for x in comments_thread(request, text_version, text) if x in comments]
         extended_comments = {}
         nb_children = {}
         for cc in viewable_comments :