Merge pull request #10721 from annando/issue-10720-avatar

Issue 10720: Use different path scheme for user avatars
This commit is contained in:
Hypolite Petovan 2021-09-18 09:30:08 -04:00 committed by GitHub
commit 24ecf5954c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 84 additions and 34 deletions

View file

@ -370,7 +370,7 @@ class Transmitter
'owner' => $owner['url'],
'publicKeyPem' => $owner['pubkey']];
$data['endpoints'] = ['sharedInbox' => DI::baseUrl() . '/inbox'];
$data['icon'] = ['type' => 'Image', 'url' => Contact::getAvatarUrlForId($owner['id'], '', $owner['updated'])];
$data['icon'] = ['type' => 'Image', 'url' => User::getAvatarUrlForId($uid)];
$resourceid = Photo::ridFromURI($owner['photo']);
if (!empty($resourceid)) {