]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
The fetch function now centrally controls the content
[friendica.git] / mod / notes.php
index 69b544472f6bba4013659fc3087ce6be29f9e75e..99114add8c87a6e2971f65f0795b19d3b17eca3d 100644 (file)
@@ -73,7 +73,7 @@ function notes_content(App $a, $update = false)
        if (DBM::is_result($r)) {
                $parents_arr = [];
 
-               while ($rr = dba::fetch($r)) {
+               while ($rr = Item::fetch($r)) {
                        $parents_arr[] = $rr['item_id'];
                }
                dba::close($r);
@@ -81,7 +81,7 @@ function notes_content(App $a, $update = false)
                $condition = ['uid' => local_user(), 'parent' => $parents_arr];
                $result = Item::selectForUser(local_user(), [], $condition);
                if (DBM::is_result($result)) {
-                       $items = conv_sort(dba::inArray($result), 'commented');
+                       $items = conv_sort(Item::inArray($result), 'commented');
                        $o .= conversation($a, $items, 'notes', $update);
                }
        }