$id in Transmitter::sendContactAccept() is a string, see Introduction class

This commit is contained in:
Roland Häder 2022-06-23 16:46:44 +02:00
parent bf600905d3
commit 0ddb315b23
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 7 additions and 5 deletions

View file

@ -1267,8 +1267,10 @@ class Processor
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']);