From 5468ebbb436a2abe70eea28185209bbd9838f390 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 6 Oct 2017 21:05:37 +0200 Subject: Revert "mod display: if we have a local channel we should still be allowed to see sys channel items" This reverts commit 27f83203531606f6dca99bc89f7cd31e5e296528. --- Zotlabs/Module/Display.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index d405a14b5..0ea55102e 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -203,12 +203,11 @@ class Display extends \Zotlabs\Web\Controller { if(local_channel()) { $r = q("SELECT item.id as item_id from item - WHERE (uid = %d or uid = %d) + WHERE uid = %d and mid = '%s' $item_normal limit 1", intval(local_channel()), - intval($sysid), dbesc($target_item['parent_mid']) ); if($r) { -- cgit v1.2.3