diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 5f413f57b6..5b12d99160 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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') {