Browse Source

Avoid warnings

pull/5794/head
Michael 3 years ago
parent
commit
dd38b7e329
  1. 2
      src/Model/APContact.php
  2. 2
      src/Protocol/ActivityPub.php

2
src/Model/APContact.php

@ -105,7 +105,7 @@ class APContact extends BaseObject
$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);

2
src/Protocol/ActivityPub.php

@ -739,7 +739,7 @@ class ActivityPub
$profile = ['network' => Protocol::ACTIVITYPUB];
$profile['nick'] = $apcontact['nick'];
$profile['name'] = $apcontact['name'];
$profile['guid'] = $apcontact['diaspora:guid'];
$profile['guid'] = $apcontact['uuid'];
$profile['url'] = $apcontact['url'];
$profile['addr'] = $apcontact['addr'];
$profile['alias'] = $apcontact['alias'];

Loading…
Cancel
Save