From: Michael Date: Sat, 10 Dec 2022 16:02:38 +0000 (+0000) Subject: Simplify lastname/firstname X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2761972742da079d58b91d7f125cc1dd33c6db3e;p=friendica.git Simplify lastname/firstname --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 8a8e1a01f1..5beef2ea82 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -2211,8 +2211,6 @@ class Probe $approfile = ActivityPub\Transmitter::getProfile($uid); $split_name = Diaspora::splitName($owner['name']); - $firstname = $split_name['first']; - $lastname = $split_name['last']; if (empty($owner['gsid'])) { $owner['gsid'] = GServer::getID($approfile['generator']['url']); @@ -2237,8 +2235,8 @@ class Probe 'networks' => [ Protocol::DIASPORA => [ 'name' => $owner['name'], - 'given_name' => $firstname, - 'family_name' => $lastname, + 'given_name' => $split_name['first'], + 'family_name' => $split_name['last'], 'nick' => $owner['nick'], 'guid' => $approfile['diaspora:guid'], 'url' => $owner['url'],