]> git.mxchange.org Git - friendica.git/commitdiff
Simplify the update functionality
authorMichael <heluecht@pirati.ca>
Fri, 14 Aug 2020 08:09:36 +0000 (08:09 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 14 Aug 2020 08:09:36 +0000 (08:09 +0000)
mod/network.php

index 627c9ddc69bec5b7e14f31a7906c1a2a1a4f83b2..79d8c36a7e870415d7427a6dbaed05f8561cf9d4 100644 (file)
@@ -293,7 +293,7 @@ function network_content(App $a, $update = 0, $parent = 0)
                $o = networkThreadedView($a, $update, $parent);
        }
 
-       if ($o === '') {
+       if (!$update && ($o === '')) {
                notice(DI::l10n()->t("No items found"));
        }
 
@@ -600,13 +600,6 @@ function networkThreadedView(App $a, $update, $parent)
                } else {
                        // Load all unseen items
                        $sql_extra2 = "`item`.`unseen`";
-                       if (DI::config()->get("system", "like_no_comment")) {
-                               $sql_extra2 .= " AND `item`.`gravity` IN (" . GRAVITY_PARENT . "," . GRAVITY_COMMENT . ")";
-                       }
-                       if ($order === 'post') {
-                               // Only show toplevel posts when updating posts in this order mode
-                               $sql_extra2 .= " AND `item`.`gravity` = " . GRAVITY_PARENT;
-                       }
                }
 
                $r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`