mirror of
https://github.com/AMNatty/Mastodon-Circles.git
synced 2024-11-25 04:27:27 -07:00
Firefish detection
This commit is contained in:
parent
7a0dfed243
commit
d52bf65d07
1 changed files with 5 additions and 1 deletions
|
@ -99,7 +99,11 @@ class ApiClient {
|
||||||
let { software } = apiResponse;
|
let { software } = apiResponse;
|
||||||
software.name = software.name.toLowerCase();
|
software.name = software.name.toLowerCase();
|
||||||
|
|
||||||
if (software.name.includes("misskey") || software.name.includes("calckey") || software.name.includes("foundkey") || software.name.includes("magnetar")) {
|
if (software.name.includes("misskey") ||
|
||||||
|
software.name.includes("calckey") ||
|
||||||
|
software.name.includes("foundkey") ||
|
||||||
|
software.name.includes("magnetar") ||
|
||||||
|
software.name.includes("firefish")) {
|
||||||
const client = new MisskeyApiClient(instance);
|
const client = new MisskeyApiClient(instance);
|
||||||
instanceTypeCache.set(instance, client);
|
instanceTypeCache.set(instance, client);
|
||||||
return client;
|
return client;
|
||||||
|
|
Loading…
Reference in a new issue