aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-14 23:29:24 -0800
committerfriendica <info@friendica.com>2012-02-14 23:29:24 -0800
commit07ca8d6574cc8b7f582bc55551290bf5f88ba8e2 (patch)
tree3a918194e270c4997a56b418f41cf2b6b0e22ebc /mod/network.php
parent03171fd7deeb8e564478273ebdbee77eeab4a6cd (diff)
downloadvolse-hubzilla-07ca8d6574cc8b7f582bc55551290bf5f88ba8e2.tar.gz
volse-hubzilla-07ca8d6574cc8b7f582bc55551290bf5f88ba8e2.tar.bz2
volse-hubzilla-07ca8d6574cc8b7f582bc55551290bf5f88ba8e2.zip
starred/bookmark searches only returning conversation head without comments
Diffstat (limited to 'mod/network.php')
-rwxr-xr-xmod/network.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/mod/network.php b/mod/network.php
index 8f10ace77..03a671b61 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",