Use the correct table

This commit is contained in:
Michael 2020-08-15 11:54:37 +00:00
parent 17bc81d36e
commit d46359a891

View File

@ -610,10 +610,12 @@ function networkThreadedView(App $a, $update, $parent)
} }
$params = ['order' => [$order_mode => true], 'limit' => 100]; $params = ['order' => [$order_mode => true], 'limit' => 100];
$table = 'network-item-view';
} else { } else {
$params = ['order' => [$order_mode => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]]; $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); return $o . network_display_post($a, $pager, (!$gid && !$cid && !$star), $update, $ordering, $r);
} }