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:
@@ -519,7 +519,7 @@ class VkBridge extends BridgeAbstract
|
||||
$uri = urljoin(self::URI, $headers['location'][0]);
|
||||
|
||||
if (str_contains($uri, '/429.html')) {
|
||||
returnServerError('VK responded "Too many requests"');
|
||||
throw new RateLimitException();
|
||||
}
|
||||
|
||||
if (!preg_match('#^https?://vk.com/#', $uri)) {
|
||||
|
Reference in New Issue
Block a user