Add 'profile_image_url_https' to enhance compatiblity with Twitter clients since they now need https URLs instead of plain http

This commit is contained in:
Jean Baptiste Favre 2014-01-26 23:53:44 +01:00
parent 698a7adb83
commit 703aa302b6
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ class ApiAction extends Action
// TODO: avatar url template (example.com/user/avatar?size={x}x{y})
$twitter_user['profile_image_url'] = Avatar::urlByProfile($profile, AVATAR_STREAM_SIZE);
$twitter_user['profile_image_url_https'] = $twitter_user['profile_image_url'];
// START introduced by qvitter API, not necessary for StatusNet API
$twitter_user['profile_image_url_profile_size'] = Avatar::urlByProfile($profile, AVATAR_PROFILE_SIZE);
try {