Update InboxValidator job

pull/1378/head
Daniel Supernault 6 years ago
parent 10f897b59f
commit 21f211d354
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -99,7 +99,8 @@ class InboxValidator implements ShouldQueue
} }
$actor = Profile::whereKeyId($keyId)->first(); $actor = Profile::whereKeyId($keyId)->first();
if(!$actor) { if(!$actor) {
$actor = Helpers::profileFirstOrNew($bodyDecoded['actor']); $actorUrl = is_array($bodyDecoded['actor']) ? $bodyDecoded['actor'][0] : $bodyDecoded['actor'];
$actor = Helpers::profileFirstOrNew($actorUrl);
} }
if(!$actor) { if(!$actor) {
return false; return false;

Loading…
Cancel
Save