Explorar o código

Update FederationController, dispatch inbox jobs now on high queue

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
29ce725c70
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/FederationController.php

+ 1 - 1
app/Http/Controllers/FederationController.php

@@ -102,7 +102,7 @@ class FederationController extends Controller
 
         $headers = $request->headers->all();
         $payload = $request->getContent();
-        InboxValidator::dispatch($username, $headers, $payload);
+        InboxValidator::dispatchNow($username, $headers, $payload)->onQueue('high');
         // $profile = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
         // if($profile->status != null) {
         //     return ProfileController::accountCheck($profile);