mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
Making Friendica compatible to Nextcloud Social
This commit is contained in:
parent
0cdf0ba422
commit
d113ccd93c
3 changed files with 7 additions and 3 deletions
|
@ -137,7 +137,7 @@ class APContact extends BaseObject
|
|||
$apcontact['about'] = HTML::toBBCode(JsonLD::fetchElement($compacted, 'as:summary'));
|
||||
|
||||
$apcontact['photo'] = JsonLD::fetchElement($compacted, 'as:icon', '@id');
|
||||
if (is_array($apcontact['photo'])) {
|
||||
if (is_array($apcontact['photo']) || !empty($compacted['as:icon']['as:url']['@id'])) {
|
||||
$apcontact['photo'] = JsonLD::fetchElement($compacted['as:icon'], 'as:url', '@id');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue