mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-25 23:21:25 +00:00
Force redirect tenor
This commit is contained in:
@@ -44,6 +44,7 @@ export class GifProviderManager {
|
||||
}
|
||||
|
||||
public static getProvider(id: string): IGifProvider {
|
||||
if (id == "tenor") id = "klipy";
|
||||
if (this._providers.has(id)) return this._providers.get(id)!;
|
||||
|
||||
throw new Error(`Unknown GIF provider, or it is not enabled: ${id}, known GIF providers: ${this._providers.keys().toArray().join(", ")}`);
|
||||
|
||||
Reference in New Issue
Block a user