Issue 9013: In "post" order only load new toplevel posts
This commit is contained in:
parent
2d25d5975a
commit
7c80e93ea8
|
@ -597,6 +597,9 @@ function networkThreadedView(App $a, $update, $parent)
|
||||||
if (!empty($parent)) {
|
if (!empty($parent)) {
|
||||||
// Load only a single thread
|
// Load only a single thread
|
||||||
$sql_extra2 = "`item`.`id` = ".intval($parent);
|
$sql_extra2 = "`item`.`id` = ".intval($parent);
|
||||||
|
} elseif ($order === 'post') {
|
||||||
|
// Only load new toplevel posts
|
||||||
|
$sql_extra2 = "`item`.`unseen` AND `item`.`gravity` = " . GRAVITY_PARENT;
|
||||||
} else {
|
} else {
|
||||||
// Load all unseen items
|
// Load all unseen items
|
||||||
$sql_extra2 = "`item`.`unseen`";
|
$sql_extra2 = "`item`.`unseen`";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user