mirror of
https://github.com/friendica/friendica
synced 2025-05-04 20:24:10 +02:00
$id in Transmitter::sendContactAccept() is a string, see Introduction class
This commit is contained in:
parent
bf600905d3
commit
0ddb315b23
2 changed files with 7 additions and 5 deletions
|
@ -2116,13 +2116,13 @@ class Transmitter
|
|||
* 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'])) {
|
||||
|
@ -2137,7 +2137,7 @@ class Transmitter
|
|||
'type' => 'Accept',
|
||||
'actor' => $owner['url'],
|
||||
'object' => [
|
||||
'id' => (string)$id,
|
||||
'id' => $id,
|
||||
'type' => 'Follow',
|
||||
'actor' => $profile['url'],
|
||||
'object' => $owner['url']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue