1
0
Fork 0
forked from mirror/pixelfed

Update Inbox

This commit is contained in:
Daniel Supernault 2020-04-29 15:56:21 -06:00
parent d0fefe242b
commit f829df23a0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -300,6 +300,9 @@ class Inbox
}
$actor = $this->payload['actor'];
$obj = $this->payload['object'];
if(is_string($obj) == true) {
return;
}
$type = $this->payload['object']['type'];
$typeCheck = in_array($type, ['Person', 'Tombstone']);
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {