]> git.mxchange.org Git - friendica.git/commitdiff
Threaded notes
authorDomovoy <domovoy@errlock.org>
Fri, 3 Aug 2012 19:41:26 +0000 (21:41 +0200)
committerDomovoy <domovoy@errlock.org>
Fri, 3 Aug 2012 19:41:26 +0000 (21:41 +0200)
mod/notes.php

index 625bbd2eefa97354d84af10f2561bb13e36c4d4e..5d70ba5cd2a4d3c5657b2712a83dbefcf8857f6d 100644 (file)
@@ -129,9 +129,13 @@ function notes_content(&$a,$update = false) {
                        intval(local_user()),
                        dbesc($parents_str)
                );
-       }
 
-       $o .= conversation($a,$r,'notes',$update);
+               if(count($r)) {
+                       $items = conv_sort($r,"`commented`");
+
+                       $o .= conversation($a,$items,'notes',$update, false, true);
+               }
+       }
 
 
        $o .= paginate($a);