removed throttle for mod
CI/CD / test_and_check_app (push) Successful in 3m39s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-09-03 13:21:46 +02:00
committed by Eric
parent 164658dae2
commit d2042fb95b
5 changed files with 80 additions and 15 deletions
+9 -7
View File
@@ -29,15 +29,17 @@ class RoomEmoteService
]);
}
$rateLimitKey = "room-emote:{$room->id}:{$player->id}";
if (! $player->isModerator()) {
$rateLimitKey = "room-emote:{$room->id}:{$player->id}";
abort_if(
RateLimiter::tooManyAttempts($rateLimitKey, 10),
429,
'Bitte warte kurz, bevor du erneut wirfst.',
);
abort_if(
RateLimiter::tooManyAttempts($rateLimitKey, 10),
429,
'Bitte warte kurz, bevor du erneut wirfst.',
);
RateLimiter::hit($rateLimitKey, 10);
RateLimiter::hit($rateLimitKey, 10);
}
PaperBallThrown::dispatch(
Str::uuid()->toString(),