Преглед на файлове

Update InboxValidator job

Daniel Supernault преди 6 години
родител
ревизия
3679332114
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/Jobs/InboxPipeline/InboxValidator.php

+ 3 - 3
app/Jobs/InboxPipeline/InboxValidator.php

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