Contact::update(['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
}
- $item = ['author-id' => Contact::getIdForURL($activity['actor']),
- 'author-link' => $activity['actor']];
+ $item = [
+ 'author-id' => Contact::getIdForURL($activity['actor']),
+ 'author-link' => $activity['actor'],
+ ];
// Ensure that the contact has got the right network type
self::switchContact($item['author-id']);
* Transmit a message that the contact request had been accepted
*
* @param string $target Target profile
- * @param integer $id Object id
+ * @param string $id Object id
* @param integer $uid User ID
* @return void
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
- public static function sendContactAccept(string $target, int $id, int $uid)
+ public static function sendContactAccept(string $target, string $id, int $uid)
{
$profile = APContact::getByURL($target);
if (empty($profile['inbox'])) {
'type' => 'Accept',
'actor' => $owner['url'],
'object' => [
- 'id' => (string)$id,
+ 'id' => $id,
'type' => 'Follow',
'actor' => $profile['url'],
'object' => $owner['url']