From ab81458768f5989779e2ae1e74bfc5ba2d0bac0c Mon Sep 17 00:00:00 2001 From: zottel Date: Thu, 9 Jan 2014 16:18:17 +0100 Subject: took out some left-overs from the debugging phase --- mod/channel.php | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'mod/channel.php') diff --git a/mod/channel.php b/mod/channel.php index 27f1cbdc6..458783b18 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -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 -- cgit v1.2.3