mirror of https://github.com/pixelfed/pixelfed.git
Update Inbox, fixes #3313
This commit is contained in:
parent
14231632d5
commit
1c3e72c087
|
@ -591,6 +591,9 @@ class Inbox
|
||||||
DeleteRemoteProfilePipeline::dispatchNow($profile);
|
DeleteRemoteProfilePipeline::dispatchNow($profile);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
if(!isset($obj['id'], $this->payload['object'], $this->payload['object']['id'])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$type = $this->payload['object']['type'];
|
$type = $this->payload['object']['type'];
|
||||||
$typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']);
|
$typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']);
|
||||||
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
|
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
|
||||||
|
|
Loading…
Reference in New Issue