diff options
author | friendica <info@friendica.com> | 2014-03-26 19:13:26 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-26 19:13:26 -0700 |
commit | e476ed6be5d89c1fedd683d69b1562928951fb2f (patch) | |
tree | 63cfaf9bb1cc07a074249bb0132e6c0fb17fad40 /include | |
parent | ed14c1f224afadb5dd5417d4078f853ff97b30cb (diff) | |
download | volse-hubzilla-e476ed6be5d89c1fedd683d69b1562928951fb2f.tar.gz volse-hubzilla-e476ed6be5d89c1fedd683d69b1562928951fb2f.tar.bz2 volse-hubzilla-e476ed6be5d89c1fedd683d69b1562928951fb2f.zip |
there's the problem
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php index 5cc1ef05c..e858955b6 100755 --- a/include/items.php +++ b/include/items.php @@ -3751,8 +3751,10 @@ function zot_feed($uid,$observer_xchan,$mindate) { return $result; } - require_once('include/security.php'); - $sql_extra = item_permissions_sql($uid); + if(! is_sys_channel($uid)) { + require_once('include/security.php'); + $sql_extra = item_permissions_sql($uid); + } if($mindate != '0000-00-00 00:00:00') { $sql_extra .= " and created > '$mindate' "; @@ -3767,8 +3769,7 @@ function zot_feed($uid,$observer_xchan,$mindate) { $r = q("SELECT item.*, item.id as item_id from item WHERE uid in (" . stream_perms_api_uids(PERMS_PUBLIC) . ") AND item_restrict = 0 and id = parent AND (item_flags & %d) - and item_private = 0 ORDER BY created ASC $limit", - intval($uid), + and item_private = 0 $sql_extra ORDER BY created ASC $limit", intval(ITEM_WALL) ); } |