]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add 'profile_image_url_https' to enhance compatiblity with Twitter clients since...
authorJean Baptiste Favre <github@jbfavre.org>
Sun, 26 Jan 2014 22:53:44 +0000 (23:53 +0100)
committerJean Baptiste Favre <github@jbfavre.org>
Sun, 23 Feb 2014 21:12:03 +0000 (22:12 +0100)
lib/apiaction.php

index dd4047125a0443f6218ebb57bc497e4e6e333266..f8ffbc84a5b4bc449abe779c160bb2146aee1917 100644 (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 {