so here’s the detection code I have:
const software = nodeInfo.software.name; let misskeyApi = ["misskey", "calckey", "foundkey", "firefish", "waterbird"].includes(software); const probablyPleroma = ["pleroma", "akkoma"].includes(software); let mastodonApi = ["mastodon", "hometown"].includes(software) || probablyPleroma; let mastodonStreamingApi: string | null = null; if (probablyPleroma) { mastodonStreamingApi = await getMastodonStreamingUrl(url.href); } if (!misskeyApi && !probablyPleroma && !mastodonApi) { mastodonApi = await testForMastodonApi(url.href); }Conversation
Notices
-
Moon (moon@shitposter.club)'s status on Sunday, 23-Jul-2023 08:26:07 JST Moon
-
Moon (moon@shitposter.club)'s status on Sunday, 23-Jul-2023 08:26:06 JST Moon
@romin Pleroma supports the Mastodon streaming API. Mastodon also supports the Mastodon streaming API, but I can't use it because it requires a user OAuth token so I just automatically mark it false if it's a Mastodon server. cool_boy_mew likes this. -
ロミンちゃん (romin@shitposter.club)'s status on Sunday, 23-Jul-2023 08:26:07 JST ロミンちゃん
@Moon
>probablyPleroma
>mastodonStreamingApi
nani?
-