From 740f2e4cec656448ea8cef223c02eb2f5e65d7d5 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 14 Aug 2020 08:09:36 +0000 Subject: [PATCH] Simplify the update functionality --- mod/network.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mod/network.php b/mod/network.php index 627c9ddc69..79d8c36a7e 100644 --- a/mod/network.php +++ b/mod/network.php @@ -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`