zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
205 stars 139 forks source link

Getting profile photo for Yandex provider #237

Closed ivserg-at closed 3 years ago

ivserg-at commented 3 years ago

Please, consider fixing as advised on https://yandex.ru/dev/passport/doc/dg/reference/response.html:

<         $userProfile->photoURL = 'http://upics.yandex.net/' . $userProfile->identifier . '/normal';
---
>         if (!$data->get('is_avatar_empty')) {
>             $userProfile->photoURL = 'https://avatars.mds.yandex.net/get-yapic/' .  $data->get('default_avatar_id') . '/islands-200';
>         }
zorn-v commented 3 years ago

It is https://github.com/hybridauth/hybridauth related