]> git.mxchange.org Git - friendica.git/commitdiff
Use name or nick
authorMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 20:52:30 +0000 (20:52 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 20:52:30 +0000 (20:52 +0000)
src/Protocol/ActivityPub/Processor.php

index 5f413f57b6aac686fb7191f47d18c4a468c516d6..5b12d991600b05cc003c21e66f64c5e4fb878532 100644 (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') {