forked from mirror/pixelfed
Update Inbox, fixes #3313
This commit is contained in:
parent
14231632d5
commit
1c3e72c087
1 changed files with 3 additions and 0 deletions
|
@ -591,6 +591,9 @@ class Inbox
|
|||
DeleteRemoteProfilePipeline::dispatchNow($profile);
|
||||
return;
|
||||
} else {
|
||||
if(!isset($obj['id'], $this->payload['object'], $this->payload['object']['id'])) {
|
||||
return;
|
||||
}
|
||||
$type = $this->payload['object']['type'];
|
||||
$typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']);
|
||||
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
|
||||
|
|
Loading…
Reference in a new issue