From cc6e6e53be4da93bd81b1fe3a420a78ba1e5360b Mon Sep 17 00:00:00 2001 From: Domovoy Date: Fri, 3 Aug 2012 21:41:26 +0200 Subject: [PATCH] Threaded notes --- mod/notes.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mod/notes.php b/mod/notes.php index 625bbd2eef..5d70ba5cd2 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -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); -- 2.39.5