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.

This commit is contained in:
zotlabs
2017-11-15 11:26:14 -08:00
parent 8e53491867
commit 67b6d41d57
3 changed files with 23 additions and 13 deletions

View File

@@ -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);
}