]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / notes.php
index b6b6faefab2a275728ffdade428001d23b4f0481..6ecc819240ff67d817f27dc9ee91c7aa540d61ec 100644 (file)
@@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
                return;
        }
 
-       require_once 'include/conversation.php';
-
        $o = Profile::getTabs($a, true);
 
        if (!$update) {
@@ -59,9 +57,9 @@ function notes_content(App $a, $update = false)
        }
 
        $condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
-               'wall' => false, 'contact-id'=> $a->contact['id']];
+               'contact-id'=> $a->contact['id']];
 
-       $pager = new Pager($a->query_string, null, 40);
+       $pager = new Pager($a->query_string, 40);
 
        $params = ['order' => ['created' => true],
                'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
@@ -70,7 +68,7 @@ function notes_content(App $a, $update = false)
        $count = 0;
 
        if (DBA::isResult($r)) {
-               $notes = DBA::toArray($r);
+               $notes = Item::inArray($r);
 
                $count = count($notes);