From e03da2beba27afa7abb748ad5134215cf6b582a7 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 16 Jul 2012 23:14:11 -0700 Subject: first cut at a generalised item query function --- mod/network.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod') diff --git a/mod/network.php b/mod/network.php index 79587a581..11d951ef9 100644 --- a/mod/network.php +++ b/mod/network.php @@ -614,6 +614,8 @@ function network_content(&$a, $update = 0) { ); } else { + + $r = q("SELECT `item`.`id` AS `item_id`, `contact`.`uid` AS `contact_uid` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 -- cgit v1.2.3