Merge pull request #4771 from Rudloff/feature/avatar
Add profile_image_url_profile_size and profile_image_url_large to API
This commit is contained in:
commit
23f5779401
1 changed files with 4 additions and 0 deletions
|
@ -647,6 +647,8 @@ function api_get_user(App $a, $contact_id = null)
|
||||||
'description' => $r[0]["about"],
|
'description' => $r[0]["about"],
|
||||||
'profile_image_url' => $r[0]["micro"],
|
'profile_image_url' => $r[0]["micro"],
|
||||||
'profile_image_url_https' => $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"],
|
'url' => $r[0]["url"],
|
||||||
'protected' => false,
|
'protected' => false,
|
||||||
'followers_count' => 0,
|
'followers_count' => 0,
|
||||||
|
@ -782,6 +784,8 @@ function api_get_user(App $a, $contact_id = null)
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'profile_image_url' => $uinfo[0]['micro'],
|
'profile_image_url' => $uinfo[0]['micro'],
|
||||||
'profile_image_url_https' => $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'],
|
'url' => $uinfo[0]['url'],
|
||||||
'protected' => false,
|
'protected' => false,
|
||||||
'followers_count' => intval($countfollowers),
|
'followers_count' => intval($countfollowers),
|
||||||
|
|
Loading…
Reference in a new issue