From a25b8c951ba7c1f2f43c56b136bcea9731c6ab32 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sat, 25 Jan 2014 22:56:15 +0100 Subject: Check user_info['self] in api user_timeline --- include/api.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'include') 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); -- cgit v1.2.3