Merge pull request #997 from pixelfed/frontend-ui-refactor

Update AP inbox
This commit is contained in:
daniel 2019-03-09 02:16:21 -07:00 committed by GitHub
commit 60ebbff907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,19 +197,15 @@ class Inbox
'item_type' => 'App\Profile'
]);
}
$payload = $this->payload;
$payload = unset($payload['@context']);
// send Accept to remote profile
$accept = [
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => $target->permalink().'#accepts/follows/' . $follower->id,
'type' => 'Accept',
'actor' => $target->permalink(),
'object' => [
'id' => $this->payload['id'],
'type' => 'Follow',
'actor' => $actor->permalink(),
'object' => $target->permalink()
]
'object' => $payload
];
Helpers::sendSignedObject($target, $actor->inbox_url, $accept);
}