* @param boolean $update true = always update, false = never update, null = update when not found
* @return array profile array
*/
- public static function getProfileByURL($url, $update = null)
+ public static function getByURL($url, $update = null)
{
if (empty($url)) {
return false;
$apcontact = [];
$apcontact['url'] = $data['id'];
- $apcontact['uuid'] = defaults($data, 'uuid', null);
+ $apcontact['uuid'] = defaults($data, 'diaspora:guid', null);
$apcontact['type'] = defaults($data, 'type', null);
$apcontact['following'] = defaults($data, 'following', null);
$apcontact['followers'] = defaults($data, 'followers', null);