git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit d98784e0 authored by mmn's avatar mmn

Use functions instead of accessing properties in twitterUserArray

parent 3dea259f
......@@ -214,11 +214,11 @@ class ApiAction extends Action
$user = null;
}
$twitter_user['id'] = intval($profile->id);
$twitter_user['id'] = $profile->getID();
$twitter_user['name'] = $profile->getBestName();
$twitter_user['screen_name'] = $profile->nickname;
$twitter_user['location'] = ($profile->location) ? $profile->location : null;
$twitter_user['description'] = ($profile->bio) ? $profile->bio : null;
$twitter_user['screen_name'] = $profile->getNickname();
$twitter_user['location'] = $profile->location;
$twitter_user['description'] = $profile->getDescription();
// TODO: avatar url template (example.com/user/avatar?size={x}x{y})
$twitter_user['profile_image_url'] = Avatar::urlByProfile($profile, AVATAR_STREAM_SIZE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment