From 794c92a8fb789f604c869e9adabf5aae24cd90d6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 10 Oct 2012 17:58:56 -0700 Subject: wall posts now display - address book structure revamp started --- mod/display.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mod/display.php') diff --git a/mod/display.php b/mod/display.php index 8193ce377..80813e69e 100644 --- a/mod/display.php +++ b/mod/display.php @@ -97,11 +97,7 @@ function display_content(&$a) { $sql_extra = item_permissions_sql($a->profile['uid'],$remote_contact,$groups); - $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, - `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`, - `contact`.`network`, `contact`.`thumb`, `contact`.`self`, `contact`.`writable`, - `contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid` - FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` + $r = q("SELECT `item`.*, `item`.`id` AS `item_id` FROM `item` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 -- cgit v1.2.3