removed throttle for mod

This commit is contained in:
2026-08-27 15:38:12 +02:00
parent b2c1d67283
commit 36f82d1a0a
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(),