From 9fcccca91012776a075fe9220c7ece61c2d07c63 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 29 Dec 2022 03:54:58 -0700 Subject: [PATCH] Update FederationController, fix double lock bug --- app/Http/Controllers/FederationController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Http/Controllers/FederationController.php b/app/Http/Controllers/FederationController.php index 358f3093f..c4b5e86bf 100644 --- a/app/Http/Controllers/FederationController.php +++ b/app/Http/Controllers/FederationController.php @@ -178,12 +178,6 @@ class FederationController extends Controller } else if( isset($obj['type']) && in_array($obj['type'], ['Follow', 'Accept'])) { dispatch(new InboxValidator($username, $headers, $payload))->onQueue('follow'); } else { - $lockKey = 'pf:ap:user-inbox:activity:' . hash('sha256', $obj['id']); - if(Cache::get($lockKey) !== null) { - return; - } - Cache::put($lockKey, 1, 43200); - usleep(5000); dispatch(new InboxValidator($username, $headers, $payload))->onQueue('high'); } return;