]> git.mxchange.org Git - friendica.git/commitdiff
Add profile_image_url_profile_size and profile_image_url_large properties to user...
authorPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 11:13:31 +0000 (13:13 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 11:31:17 +0000 (13:31 +0200)
This allows some clients to display a bigger avatar on profiles.

include/api.php

index 2d41cb986a4e5706c42fa6205bc8926816ae4221..898ce49ac31fe32f446052a466f4f059af128cd0 100644 (file)
@@ -647,6 +647,8 @@ function api_get_user(App $a, $contact_id = null)
                                'description' => $r[0]["about"],
                                'profile_image_url' => $r[0]["micro"],
                                'profile_image_url_https' => $r[0]["micro"],
+                               'profile_image_url_profile_size' => $r[0]["thumb"],
+                               'profile_image_url_large' => $r[0]["photo"],
                                'url' => $r[0]["url"],
                                'protected' => false,
                                'followers_count' => 0,
@@ -782,6 +784,8 @@ function api_get_user(App $a, $contact_id = null)
                'description' => $description,
                'profile_image_url' => $uinfo[0]['micro'],
                'profile_image_url_https' => $uinfo[0]['micro'],
+               'profile_image_url_profile_size' => $uinfo[0]["thumb"],
+               'profile_image_url_large' => $uinfo[0]["photo"],
                'url' => $uinfo[0]['url'],
                'protected' => false,
                'followers_count' => intval($countfollowers),