Use the correct table

This commit is contained in:
Michael 2020-08-15 11:54:37 +00:00
parent 17bc81d36e
commit d46359a891
1 changed files with 3 additions and 1 deletions

View File

@ -610,10 +610,12 @@ function networkThreadedView(App $a, $update, $parent)
}
$params = ['order' => [$order_mode => true], 'limit' => 100];
$table = 'network-item-view';
} else {
$params = ['order' => [$order_mode => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
$table = 'network-thread-view';
}
$r = DBA::selectToArray('network-item-view', [], DBA::mergeConditions($condition1, $condition2), $params);
$r = DBA::selectToArray($table, [], DBA::mergeConditions($condition1, $condition2), $params);
return $o . network_display_post($a, $pager, (!$gid && !$cid && !$star), $update, $ordering, $r);
}