X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=09dac72b0c9437dec1a7ee1063dd79ef4370eddf;hb=f0b928176aa81f1e29672ad3da8b542e757f3d30;hp=625bbd2eefa97354d84af10f2561bb13e36c4d4e;hpb=70c4ab68754941749a5e89434d6db19f6bba1e16;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index 625bbd2eef..09dac72b0c 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -60,16 +60,12 @@ function notes_content(&$a,$update = false) { 'bang' => '', 'visitor' => 'block', 'profile_uid' => local_user(), - 'button' => t('Save') - + 'button' => t('Save'), + 'acl_data' => '', ); $o .= status_editor($a,$x,$a->contact['id']); - $o .= '
' . "\r\n"; - $o .= "\r\n"; - } // Construct permissions @@ -129,9 +125,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); + } + } $o .= paginate($a);