Update InboxValidator job

This commit is contained in:
Daniel Supernault 2019-06-09 20:35:32 -06:00
parent e89c7d8056
commit 3679332114
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -48,12 +48,12 @@ class InboxValidator implements ShouldQueue
$profile = Profile::whereNull('domain')->whereUsername($username)->first();
if(empty($profile)) {
return;
if(empty($profile) || empty($headers) || empty($payload)) {
return true;
}
if($profile->status != null) {
return;
return true;
}
if($this->verifySignature($headers, $profile, $payload) == true) {