mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Inbox
This commit is contained in:
parent
d0fefe242b
commit
f829df23a0
1 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,9 @@ class Inbox
|
||||||
}
|
}
|
||||||
$actor = $this->payload['actor'];
|
$actor = $this->payload['actor'];
|
||||||
$obj = $this->payload['object'];
|
$obj = $this->payload['object'];
|
||||||
|
if(is_string($obj) == true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$type = $this->payload['object']['type'];
|
$type = $this->payload['object']['type'];
|
||||||
$typeCheck = in_array($type, ['Person', 'Tombstone']);
|
$typeCheck = in_array($type, ['Person', 'Tombstone']);
|
||||||
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
|
if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
|
||||||
|
|
Loading…
Reference in a new issue