X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnetwork.php;h=03a671b6157d51dc7939dfbfa024eb6ca9bf7fe2;hb=437e18d7a7433ea5a9e3388c39ba32c7fe25eb18;hp=8f10ace77545795b810e24a60741bd0ba1749ccd;hpb=850560519a4bbe9949368933e115f767aeb90b73;p=friendica.git diff --git a/mod/network.php b/mod/network.php index 8f10ace775..03a671b615 100755 --- a/mod/network.php +++ b/mod/network.php @@ -287,11 +287,7 @@ function network_content(&$a, $update = 0) { $sql_nets = (($nets) ? sprintf(" and `contact`.`network` = '%s' ", dbesc($nets)) : ''); - // We'll need the following line if starred/bookmarks are allowed in comments in the future - // $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` $sql_options ) "; - - // Otherwise, this is a bit faster: - $sql_extra = $sql_options; + $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` $sql_options ) "; if($group) { $r = q("SELECT `name`, `id` FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1",