Use name or nick

This commit is contained in:
Michael 2020-04-15 20:52:30 +00:00
parent 472518f0b5
commit f871105ef9
1 changed files with 2 additions and 2 deletions

View File

@ -602,8 +602,8 @@ class Processor
}
if (!empty($tag['href'])) {
$apcontact = APContact::getByURL($tag['href']);
if (!empty($apcontact['name'])) {
$fields['name'] = $apcontact['name'];
if (!empty($apcontact['name']) || !empty($apcontact['nick'])) {
$fields['name'] = $apcontact['name'] ?: $apcontact['nick'];
}
}
} elseif ($tag['type'] == 'Hashtag') {