1
0
Эх сурвалжийг харах

Update FederationController, fix double lock bug

Daniel Supernault 2 жил өмнө
parent
commit
9fcccca910

+ 0 - 6
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;