mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
The fetch function now centrally controls the content
This commit is contained in:
parent
62a61a95d3
commit
b03db4643f
14 changed files with 56 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue