From 60d00087f02c54dc0e2107ae05a3f85b4278d256 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 28 Feb 2018 06:36:41 +0000 Subject: [PATCH] Don't do the restriction on thread starters when loading a single thread --- mod/network.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mod/network.php b/mod/network.php index 5c69d9891e..8cd2e27939 100644 --- a/mod/network.php +++ b/mod/network.php @@ -768,11 +768,10 @@ function networkThreadedView(App $a, $update, $parent) if (Config::get("system", "like_no_comment")) { $sql_extra4 .= " AND `item`.`verb` = '".ACTIVITY_POST."'"; } - } - - if ($order === 'post') { - // Only show toplevel posts when updating posts in this order mode - $sql_extra4 .= " AND `item`.`id` = `item`.`parent`"; + if ($order === 'post') { + // Only show toplevel posts when updating posts in this order mode + $sql_extra4 .= " AND `item`.`id` = `item`.`parent`"; + } } $r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date` -- 2.39.5