mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 05:23:17 +00:00
Merge pull request #997 from pixelfed/frontend-ui-refactor
Update AP inbox
This commit is contained in:
commit
60ebbff907
1 changed files with 3 additions and 7 deletions
|
@ -197,19 +197,15 @@ class Inbox
|
||||||
'item_type' => 'App\Profile'
|
'item_type' => 'App\Profile'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
$payload = $this->payload;
|
||||||
|
$payload = unset($payload['@context']);
|
||||||
// send Accept to remote profile
|
// send Accept to remote profile
|
||||||
$accept = [
|
$accept = [
|
||||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||||
'id' => $target->permalink().'#accepts/follows/' . $follower->id,
|
'id' => $target->permalink().'#accepts/follows/' . $follower->id,
|
||||||
'type' => 'Accept',
|
'type' => 'Accept',
|
||||||
'actor' => $target->permalink(),
|
'actor' => $target->permalink(),
|
||||||
'object' => [
|
'object' => $payload
|
||||||
'id' => $this->payload['id'],
|
|
||||||
'type' => 'Follow',
|
|
||||||
'actor' => $actor->permalink(),
|
|
||||||
'object' => $target->permalink()
|
|
||||||
]
|
|
||||||
];
|
];
|
||||||
Helpers::sendSignedObject($target, $actor->inbox_url, $accept);
|
Helpers::sendSignedObject($target, $actor->inbox_url, $accept);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue