Update Inbox

This commit is contained in:
Daniel Supernault 2019-08-11 20:27:17 -06:00
parent f4e0788dc0
commit c00428721c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 3 deletions

View File

@ -243,7 +243,7 @@ class Inbox
public function handleAcceptActivity()
{
$actor = $this->payload['actor'];
$actor = $this->payload['object']['actor'];
$obj = $this->payload['object']['object'];
$type = $this->payload['object']['type'];
@ -251,8 +251,8 @@ class Inbox
return;
}
$actor = Helpers::validateUrl($actor);
$target = Helpers::validateLocalUrl($obj);
$actor = Helpers::validateLocalUrl($actor);
$target = Helpers::validateUrl($obj);
if(!$actor || !$target) {
return;