mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
Make existing extensions compatible with new stack
This commit is contained in:
@@ -12,7 +12,12 @@
|
||||
namespace Flarum\Post\Exception;
|
||||
|
||||
use Exception;
|
||||
use Flarum\Foundation\KnownError;
|
||||
|
||||
class FloodingException extends Exception
|
||||
class FloodingException extends Exception implements KnownError
|
||||
{
|
||||
public function getType(): string
|
||||
{
|
||||
return 'too_many_requests';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user