From: Jean Baptiste Favre Date: Sun, 26 Jan 2014 22:53:44 +0000 (+0100) Subject: Add 'profile_image_url_https' to enhance compatiblity with Twitter clients since... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=703aa302b68163d6f06c2a972b937d34c8379e38;p=quix0rs-gnu-social.git Add 'profile_image_url_https' to enhance compatiblity with Twitter clients since they now need https URLs instead of plain http --- diff --git a/lib/apiaction.php b/lib/apiaction.php index dd4047125a..f8ffbc84a5 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -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 {