aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-06 16:51:39 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-06 16:51:39 +0200
commit27f83203531606f6dca99bc89f7cd31e5e296528 (patch)
tree9ce911f56b37d74d3f92eadec2d9fa9ffc194dac
parente15307747fb3adfb2b0b35fef192bdfb5a9e489f (diff)
downloadvolse-hubzilla-27f83203531606f6dca99bc89f7cd31e5e296528.tar.gz
volse-hubzilla-27f83203531606f6dca99bc89f7cd31e5e296528.tar.bz2
volse-hubzilla-27f83203531606f6dca99bc89f7cd31e5e296528.zip
mod display: if we have a local channel we should still be allowed to see sys channel items
-rw-r--r--Zotlabs/Module/Display.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 0ea55102e..d405a14b5 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -203,11 +203,12 @@ class Display extends \Zotlabs\Web\Controller {
if(local_channel()) {
$r = q("SELECT item.id as item_id from item
- WHERE uid = %d
+ WHERE (uid = %d or uid = %d)
and mid = '%s'
$item_normal
limit 1",
intval(local_channel()),
+ intval($sysid),
dbesc($target_item['parent_mid'])
);
if($r) {