diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-22 15:10:20 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-22 15:10:20 -0500 |
commit | 70719c67d30810c8127707b0dd1fd7ed66aa4a9a (patch) | |
tree | 3dd9d547d2e15007689106cc26d60ba067b3a7b8 /include/items.php | |
parent | 43fca182e3915734587abf389d819546ebade3a4 (diff) | |
parent | 80ce2def461705ebd0853e99ddfc0d1bc1de2915 (diff) | |
download | volse-hubzilla-70719c67d30810c8127707b0dd1fd7ed66aa4a9a.tar.gz volse-hubzilla-70719c67d30810c8127707b0dd1fd7ed66aa4a9a.tar.bz2 volse-hubzilla-70719c67d30810c8127707b0dd1fd7ed66aa4a9a.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/items.php b/include/items.php index 68fa4c3b2..5a98fbbd4 100755 --- a/include/items.php +++ b/include/items.php @@ -4003,18 +4003,24 @@ function zot_feed($uid, $observer_hash, $arr) { $item_normal = item_normal(); if(is_sys_channel($uid)) { - $r = q("SELECT parent, created, postopts from item - WHERE uid != %d - $item_normal + + $nonsys_uids = q("SELECT channel_id FROM channel WHERE channel_system = 0"); + $nonsys_uids_str = ids_to_querystr($nonsys_uids,'channel_id'); + + $r = q("SELECT parent, postopts FROM item + WHERE uid IN ( %s ) AND item_wall = 1 - and item_private = 0 $sql_extra ORDER BY created ASC $limit", - intval($uid) + AND item_private = 0 + $item_normal + $sql_extra ORDER BY created ASC $limit", + intval($nonsys_uids_str) ); } else { - $r = q("SELECT parent, created, postopts from item - WHERE uid = %d $item_normal + $r = q("SELECT parent, postopts FROM item + WHERE uid = %d AND item_wall = 1 + $item_normal $sql_extra ORDER BY created ASC $limit", intval($uid) ); |