1
0
Fork 0

Also make this null-coalscing

This commit is contained in:
Roland Häder 2022-06-16 17:34:43 +02:00
parent e8fee5644b
commit 0e1f734b03
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -241,8 +241,7 @@ class APContact
$apcontact['name'] = $apcontact['nick'];
}
$aboutHtml = JsonLD::fetchElement($compacted, 'as:summary', '@value');
$apcontact['about'] = (!empty($aboutHtml) ? HTML::toBBCode($aboutHtml) : '');
$apcontact['about'] = HTML::toBBCode(JsonLD::fetchElement($compacted, 'as:summary', '@value') ?? '');
$ims = JsonLD::fetchElementArray($compacted, 'vcard:hasInstantMessage');