From 235eae66bb659152aa716b487c07d26721b5e6b8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 24 May 2014 11:01:52 +0200 Subject: [PATCH] New query parameter that Speeds up the network viee when there are many contacts --- mod/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/network.php b/mod/network.php index 585c063f56..ab44073508 100644 --- a/mod/network.php +++ b/mod/network.php @@ -710,7 +710,7 @@ die("ss"); ); } else { $r = q("SELECT `thread`.`iid` AS `item_id`, `thread`.`network` AS `item_network`, `contact`.`uid` AS `contact_uid` - FROM $sql_table $sql_post_table INNER JOIN `contact` ON `contact`.`id` = `thread`.`contact-id` + FROM $sql_table $sql_post_table STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id` AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 WHERE `thread`.`uid` = %d AND `thread`.`visible` = 1 AND `thread`.`deleted` = 0 AND `thread`.`moderated` = 0