]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Merge remote-tracking branch 'upstream/develop' into 1501-global-contacts
[friendica.git] / mod / notes.php
index 625bbd2eefa97354d84af10f2561bb13e36c4d4e..09dac72b0c9437dec1a7ee1063dd79ef4370eddf 100644 (file)
@@ -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 .= '<div id="live-notes"></div>' . "\r\n";
-               $o .= "<script> var profile_uid = " . local_user() 
-                       . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\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);