Merge pull request #9014 from annando/issue-9013

Issue 9013: In "post" order only load new toplevel posts
2022.09-rc
Tobias Diekershoff 2020-08-15 09:18:15 +02:00 zatwierdzone przez GitHub
commit 9536d55568
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -597,6 +597,9 @@ function networkThreadedView(App $a, $update, $parent)
if (!empty($parent)) {
// Load only a single thread
$sql_extra2 = "`item`.`id` = ".intval($parent);
} elseif ($order === 'post') {
// Only load new toplevel posts
$sql_extra2 = "`item`.`unseen` AND `item`.`gravity` = " . GRAVITY_PARENT;
} else {
// Load all unseen items
$sql_extra2 = "`item`.`unseen`";