aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-15 11:26:14 -0800
committerzotlabs <mike@macgirvin.com>2017-11-15 11:26:14 -0800
commit67b6d41d57b20a223a0cb6f33cbf81473b0936ab (patch)
tree7ee73fdb95fa183711fb4a5ed0a61a18d91932a4 /Zotlabs/Module/Pubstream.php
parent8e534918672c2ccf3614623b8bd368d18318f453 (diff)
downloadvolse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.tar.gz
volse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.tar.bz2
volse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.zip
This should sort out hubzilla issue #826 but requires a bit more testing. It may also sort out some reported issues with commenting and liking items in the public stream.
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r--Zotlabs/Module/Pubstream.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php
index 4224fa3c8..0e6c2360f 100644
--- a/Zotlabs/Module/Pubstream.php
+++ b/Zotlabs/Module/Pubstream.php
@@ -240,7 +240,10 @@ class Pubstream extends \Zotlabs\Web\Controller {
dbesc($parents_str)
);
- xchan_query($items,true,(-1));
+ // use effective_uid param of xchan_query to help sort out comment permission
+ // for sys_channel owned items.
+
+ xchan_query($items,true,(($sys) ? local_channel() : 0));
$items = fetch_post_tags($items,true);
$items = conv_sort($items,$ordering);
}