From: Michael Date: Wed, 15 Apr 2020 20:52:30 +0000 (+0000) Subject: Use name or nick X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f871105ef984efc5e093aa0068e438fa532014c7;p=friendica.git Use name or nick --- 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') {