فهرست منبع

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();
         $profile = Profile::whereNull('domain')->whereUsername($username)->first();
 
 
-        if(empty($profile)) {
-            return;
+        if(empty($profile) || empty($headers) || empty($payload)) {
+            return true;
         }
         }
 
 
         if($profile->status != null) {
         if($profile->status != null) {
-            return;
+            return true;
         }
         }
 
 
         if($this->verifySignature($headers, $profile, $payload) == true) {
         if($this->verifySignature($headers, $profile, $payload) == true) {