Merge pull request #10451 from annando/contact-path

Some more places changed to the new contact avatar path format
This commit is contained in:
Hypolite Petovan 2021-06-30 21:24:27 -04:00 committed by GitHub
commit c63dfa38c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 20 deletions

View file

@ -25,8 +25,8 @@ use Friendica\BaseModule;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Photo;
use Friendica\Model\User;
use Friendica\Protocol\ActivityNamespace;
@ -183,7 +183,7 @@ class Xrd extends BaseModule
[
'rel' => 'http://webfinger.net/rel/avatar',
'type' => $avatar['type'],
'href' => $owner['photo'],
'href' => Contact::getAvatarUrlForUrl($owner['url'], $owner['uid']),
],
[
'rel' => 'http://joindiaspora.com/seed_location',
@ -239,7 +239,7 @@ class Xrd extends BaseModule
'$hcard_url' => $baseURL . '/hcard/' . $owner['nickname'],
'$atom' => $owner['poll'],
'$poco_url' => $owner['poco'],
'$photo' => $owner['photo'],
'$photo' => Contact::getAvatarUrlForUrl($owner['url'], $owner['uid']),
'$type' => $avatar['type'],
'$salmon' => $baseURL . '/salmon/' . $owner['nickname'],
'$salmen' => $baseURL . '/salmon/' . $owner['nickname'] . '/mention',