浏览代码

Update FederationController, dispatch inbox jobs now on high queue

Daniel Supernault 5 年之前
父节点
当前提交
29ce725c70
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);