diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-01-25 22:56:15 +0100 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-01-25 22:56:15 +0100 |
commit | a25b8c951ba7c1f2f43c56b136bcea9731c6ab32 (patch) | |
tree | c2de9dc88dc3973db073da7ed4d5492a7fa08755 | |
parent | b71e855c5b8abc782c6890d4865ea62e2f72a804 (diff) | |
download | volse-hubzilla-a25b8c951ba7c1f2f43c56b136bcea9731c6ab32.tar.gz volse-hubzilla-a25b8c951ba7c1f2f43c56b136bcea9731c6ab32.tar.bz2 volse-hubzilla-a25b8c951ba7c1f2f43c56b136bcea9731c6ab32.zip |
Check user_info['self] in api user_timeline
-rw-r--r-- | include/api.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/api.php b/include/api.php index 3ab0aad27..8ceae7787 100644 --- a/include/api.php +++ b/include/api.php @@ -1263,15 +1263,24 @@ require_once('include/items.php'); // intval($since_id), // intval($start), intval($count) // ); - + if ($user_info['self']==1) { $r = items_fetch(array( 'uid' => api_user(), 'cid' => $user_info['id'], 'since_id' => $since_id, 'start' => $start, - 'records' => $count)); - - + 'records' => $count, + 'wall' => 1)); + } + else { + $r = items_fetch(array( + 'uid' => api_user(), + 'cid' => $user_info['id'], + 'since_id' => $since_id, + 'start' => $start, + 'records' => $count)); + } + $ret = api_format_items($r,$user_info); |