some fields in API timeline JSON must be int
This commit is contained in:
parent
f0af4de4a7
commit
12d5482fc1
1 changed files with 8 additions and 8 deletions
|
@ -286,8 +286,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = Array(
|
$ret = Array(
|
||||||
'uid' => $uinfo[0]['uid'],
|
'uid' => intval($uinfo[0]['uid']),
|
||||||
'id' => $uinfo[0]['cid'],
|
'id' => intval($uinfo[0]['cid']),
|
||||||
'name' => $uinfo[0]['name'],
|
'name' => $uinfo[0]['name'],
|
||||||
'screen_name' => $uinfo[0]['nick'],
|
'screen_name' => $uinfo[0]['nick'],
|
||||||
'location' => '', //$uinfo[0]['default-location'],
|
'location' => '', //$uinfo[0]['default-location'],
|
||||||
|
@ -295,15 +295,15 @@
|
||||||
'url' => $uinfo[0]['url'],
|
'url' => $uinfo[0]['url'],
|
||||||
'contact_url' => $a->get_baseurl()."/contacts/".$uinfo[0]['cid'],
|
'contact_url' => $a->get_baseurl()."/contacts/".$uinfo[0]['cid'],
|
||||||
'protected' => false, #
|
'protected' => false, #
|
||||||
'friends_count' => $countfriends,
|
'friends_count' => intval($countfriends),
|
||||||
'created_at' => api_date($uinfo[0]['name-date']),
|
'created_at' => api_date($uinfo[0]['name-date']),
|
||||||
'utc_offset' => 0, #XXX: fix me
|
'utc_offset' => 0, #XXX: fix me
|
||||||
'time_zone' => '', //$uinfo[0]['timezone'],
|
'time_zone' => '', //$uinfo[0]['timezone'],
|
||||||
'geo_enabled' => false,
|
'geo_enabled' => false,
|
||||||
'statuses_count' => $countitms, #XXX: fix me
|
'statuses_count' => intval($countitms), #XXX: fix me
|
||||||
'lang' => 'en', #XXX: fix me
|
'lang' => 'en', #XXX: fix me
|
||||||
'description' => '',
|
'description' => '',
|
||||||
'followers_count' => $countfollowers, #XXX: fix me
|
'followers_count' => intval($countfollowers), #XXX: fix me
|
||||||
'favourites_count' => 0,
|
'favourites_count' => 0,
|
||||||
'contributors_enabled' => false,
|
'contributors_enabled' => false,
|
||||||
'follow_request_sent' => false,
|
'follow_request_sent' => false,
|
||||||
|
@ -723,16 +723,16 @@
|
||||||
'created_at'=> api_date($item['created']),
|
'created_at'=> api_date($item['created']),
|
||||||
'published' => datetime_convert('UTC','UTC',$item['created'],ATOM_TIME),
|
'published' => datetime_convert('UTC','UTC',$item['created'],ATOM_TIME),
|
||||||
'updated' => datetime_convert('UTC','UTC',$item['edited'],ATOM_TIME),
|
'updated' => datetime_convert('UTC','UTC',$item['edited'],ATOM_TIME),
|
||||||
'id' => $item['id'],
|
'id' => intval($item['id']),
|
||||||
'message_id' => $item['uri'],
|
'message_id' => $item['uri'],
|
||||||
'text' => strip_tags(bbcode($item['body'])),
|
'text' => strip_tags(bbcode($item['body'])),
|
||||||
'html' => bbcode($item['body']),
|
'html' => bbcode($item['body']),
|
||||||
'source' => (($item['app']) ? $item['app'] : 'web'),
|
'source' => (($item['app']) ? $item['app'] : 'web'),
|
||||||
'url' => ($item['plink']!=''?$item['plink']:$item['author-link']),
|
'url' => ($item['plink']!=''?$item['plink']:$item['author-link']),
|
||||||
'truncated' => False,
|
'truncated' => False,
|
||||||
'in_reply_to_status_id' => ($item['parent']!=$item['id']?$item['parent']:''),
|
'in_reply_to_status_id' => ($item['parent']!=$item['id']? intval($item['parent']):''),
|
||||||
'in_reply_to_user_id' => '',
|
'in_reply_to_user_id' => '',
|
||||||
'favorited' => false,
|
'favorited' => $item['starred'] ? true : false,
|
||||||
'in_reply_to_screen_name' => '',
|
'in_reply_to_screen_name' => '',
|
||||||
'geo' => '',
|
'geo' => '',
|
||||||
'coordinates' => $item['coord'],
|
'coordinates' => $item['coord'],
|
||||||
|
|
Loading…
Reference in a new issue