diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-17 10:31:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-17 10:31:13 +0200 |
commit | dcacfc1124457c9d86bf0fa876829abb4701fbff (patch) | |
tree | 7d234920470ba97b58eaeaf2dadffe4a0217c06a /include/items.php | |
parent | 2f6cb764a4670f848123153e44d6aa58d6ab01b7 (diff) | |
parent | 593a5072d9b738ea036167f15776f90e829a1e64 (diff) | |
download | volse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.tar.gz volse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.tar.bz2 volse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index b0f6a89cf..c817c5afb 100755 --- a/include/items.php +++ b/include/items.php @@ -3997,6 +3997,7 @@ function zot_feed($uid, $observer_hash, $arr) { $result = array(); $mindate = null; $message_id = null; + $wall = true; require_once('include/security.php'); @@ -4008,6 +4009,10 @@ function zot_feed($uid, $observer_hash, $arr) { $message_id = $arr['message_id']; } + if(array_key_exists('wall',$arr)) { + $wall = intval($arr['wall']); + } + if(! $mindate) $mindate = NULL_DATE; @@ -4036,6 +4041,10 @@ function zot_feed($uid, $observer_hash, $arr) { $limit = ''; } + if($wall) { + $sql_extra .= " and item_wall = 1 "; + } + $items = []; @@ -4048,7 +4057,6 @@ function zot_feed($uid, $observer_hash, $arr) { $r = q("SELECT parent, postopts FROM item WHERE uid IN ( %s ) - AND item_wall = 1 AND item_private = 0 $item_normal $sql_extra ORDER BY created ASC $limit", @@ -4058,7 +4066,6 @@ function zot_feed($uid, $observer_hash, $arr) { else { $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) |