Merge pull request #7 from ericasch6/codex/remove-moderator-throw-throttle
CI/CD / test_and_check_app (push) Successful in 3m38s
CI/CD / Publish immutable image (push) Successful in 2m18s

removed throttle for mod
This commit is contained in:
Twyco
2026-09-03 13:39:35 +02:00
committed by GitHub
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(),