Use name or nick

This commit is contained in:
Michael 2020-04-15 20:52:30 +00:00
parent 472518f0b5
commit f871105ef9

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') {