forked from GNUsocial/gnu-social
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:
parent
698a7adb83
commit
703aa302b6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user