Browse Source

Update InboxValidator job

Daniel Supernault 6 năm trước cách đây
mục cha
commit
3679332114
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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) {