mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update Inbox
This commit is contained in:
parent
f4e0788dc0
commit
c00428721c
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue