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

View file

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