From 703aa302b68163d6f06c2a972b937d34c8379e38 Mon Sep 17 00:00:00 2001 From: Jean Baptiste Favre Date: Sun, 26 Jan 2014 23:53:44 +0100 Subject: [PATCH] Add 'profile_image_url_https' to enhance compatiblity with Twitter clients since they now need https URLs instead of plain http --- lib/apiaction.php | 2 ++ 1 file changed, 2 insertions(+) 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 {