https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d25d59
)
Issue 9013: In "post" order only load new toplevel posts
author
Michael
<heluecht@pirati.ca>
Sat, 15 Aug 2020 06:04:09 +0000
(06:04 +0000)
committer
Michael
<heluecht@pirati.ca>
Sat, 15 Aug 2020 06:04:09 +0000
(06:04 +0000)
mod/network.php
patch
|
blob
|
history
diff --git
a/mod/network.php
b/mod/network.php
index
79d8c36
..
b493f77
100644
(file)
--- a/
mod/network.php
+++ b/
mod/network.php
@@
-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`";