1
0
Fork 0
forked from mirror/pixelfed

Update Inbox, fixes #3313

This commit is contained in:
Daniel Supernault 2022-03-16 21:32:10 -06:00
parent 14231632d5
commit 1c3e72c087
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) {