1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-16 13:34:11 +02:00

feat: introduce RateLimitException (#4199)

This commit is contained in:
Dag
2024-08-08 02:13:04 +02:00
committed by GitHub
parent 7073bb2f46
commit 9973f731df
6 changed files with 24 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ class Vk2Bridge extends BridgeAbstract
public function collectData()
{
if ($this->cache->get($this->rateLimitCacheKey)) {
throw new HttpException('429 Too Many Requests', 429);
throw new RateLimitException();
}
$u = $this->getInput('u');