took out some left-overs from the debugging phase

This commit is contained in:
zottel 2014-01-09 16:18:17 +01:00
parent a517a27d53
commit ab81458768

View File

@ -138,17 +138,6 @@ function channel_content(&$a, $update = 0, $load = false) {
$r = q("SELECT parent AS item_id from item where mid = '%s' limit 1",
dbesc($mid)
);
logger("update ");
if ($r) {
// make sure we don't show other people's posts from our matrix
$parent = q("SELECT owner_xchan from item where id = %d",
dbesc($r[0]['item_id'])
);
logger("update ");
logger($parent);
if ($parent['owner_xchan'] != $a->profile['channel_hash'])
$r = array();
}
} else {
$r = q("SELECT distinct parent AS `item_id` from item
left join abook on item.author_xchan = abook.abook_xchan
@ -188,7 +177,6 @@ logger($parent);
$r = q("SELECT parent AS item_id from item where mid = '%s' limit 1",
dbesc($mid)
);
logger("load ");
} else {
$r = q("SELECT distinct id AS item_id FROM item
left join abook on item.author_xchan = abook.abook_xchan