Skip to content

Commit

Permalink
Merge pull request #2155 from h3poteto/drop/wildebeest
Browse files Browse the repository at this point in the history
Drop Wildebeest support
  • Loading branch information
h3poteto authored Feb 12, 2024
2 parents cbf8631 + 891716b commit ade5966
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 0 additions & 6 deletions megalodon/src/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f
return 'pleroma'
case 'mastodon':
return 'mastodon'
case 'wildebeest':
return 'mastodon'
case 'friendica':
return 'friendica'
case 'firefish':
Expand All @@ -89,8 +87,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f
return 'pleroma'
case 'mastodon':
return 'mastodon'
case 'wildebeest':
return 'mastodon'
case 'friendica':
return 'friendica'
case 'firefish':
Expand All @@ -113,8 +109,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f
return 'pleroma'
case 'mastodon':
return 'mastodon'
case 'wildebeest':
return 'mastodon'
case 'friendica':
return 'friendica'
case 'firefish':
Expand Down
10 changes: 1 addition & 9 deletions megalodon/test/integration/detector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,13 @@ describe('detector', () => {
})

describe('akkoma', () => {
const url = 'https://pleroma.noellabo.jp'
const url = 'https://blob.cat'
it('should be akkoma', async () => {
const akkoma = await detector(url)
expect(akkoma).toEqual('pleroma')
})
})

describe('wildebeest', () => {
const url = 'https://wildebeest.mirror-kt.dev'
it('should be mastodon', async () => {
const wildebeest = await detector(url)
expect(wildebeest).toEqual('mastodon')
})
})

describe('firefish', () => {
const url = 'https://cybre.club'
it('should be firefish', async () => {
Expand Down

0 comments on commit ade5966

Please sign in to comment.