Simplify lastname/firstname
This commit is contained in:
parent
ab1ff53b18
commit
2761972742
|
@ -2211,8 +2211,6 @@ class Probe
|
||||||
$approfile = ActivityPub\Transmitter::getProfile($uid);
|
$approfile = ActivityPub\Transmitter::getProfile($uid);
|
||||||
|
|
||||||
$split_name = Diaspora::splitName($owner['name']);
|
$split_name = Diaspora::splitName($owner['name']);
|
||||||
$firstname = $split_name['first'];
|
|
||||||
$lastname = $split_name['last'];
|
|
||||||
|
|
||||||
if (empty($owner['gsid'])) {
|
if (empty($owner['gsid'])) {
|
||||||
$owner['gsid'] = GServer::getID($approfile['generator']['url']);
|
$owner['gsid'] = GServer::getID($approfile['generator']['url']);
|
||||||
|
@ -2237,8 +2235,8 @@ class Probe
|
||||||
'networks' => [
|
'networks' => [
|
||||||
Protocol::DIASPORA => [
|
Protocol::DIASPORA => [
|
||||||
'name' => $owner['name'],
|
'name' => $owner['name'],
|
||||||
'given_name' => $firstname,
|
'given_name' => $split_name['first'],
|
||||||
'family_name' => $lastname,
|
'family_name' => $split_name['last'],
|
||||||
'nick' => $owner['nick'],
|
'nick' => $owner['nick'],
|
||||||
'guid' => $approfile['diaspora:guid'],
|
'guid' => $approfile['diaspora:guid'],
|
||||||
'url' => $owner['url'],
|
'url' => $owner['url'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user