mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Fix for network update (number of maximum comments set to 0)
This commit is contained in:
parent
3dac937f22
commit
20368cbbf4
2 changed files with 11 additions and 7 deletions
|
@ -857,20 +857,18 @@ function networkThreadedView(App $a, $update = 0)
|
|||
$parents_arr = [];
|
||||
|
||||
foreach ($items as $item) {
|
||||
if ($date_offset < $item['order_date']) {
|
||||
$date_offset = $item['order_date'];
|
||||
}
|
||||
if (!in_array($item['item_id'], $parents_arr)) {
|
||||
$parents_arr[] = $item['item_id'];
|
||||
}
|
||||
}
|
||||
|
||||
$parents_str = implode(', ', $parents_arr);
|
||||
}
|
||||
|
||||
if (x($_GET, 'offset')) {
|
||||
$date_offset = $_GET['offset'];
|
||||
} elseif (count($items)) {
|
||||
$date_offset = $items[0][$order_mode];
|
||||
} else {
|
||||
$date_offset = '';
|
||||
}
|
||||
|
||||
$a->page_offset = $date_offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue