X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=09dac72b0c9437dec1a7ee1063dd79ef4370eddf;hb=dff2384e825c4cc38ab9f6c38db3daf6e9da1fc0;hp=625bbd2eefa97354d84af10f2561bb13e36c4d4e;hpb=598a2563e844477de2f688663c7c46962b26b602;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);