More puny
This commit is contained in:
parent
72a5f7b1e2
commit
236d72685d
14 changed files with 52 additions and 55 deletions
|
@ -15,7 +15,6 @@ import signin from './private/signin';
|
|||
import discord from './service/discord';
|
||||
import github from './service/github';
|
||||
import twitter from './service/twitter';
|
||||
import { toASCII } from 'punycode';
|
||||
import { Instances } from '../../models';
|
||||
|
||||
// Init app
|
||||
|
@ -71,9 +70,7 @@ router.get('/v1/instance/peers', async ctx => {
|
|||
select: ['host']
|
||||
});
|
||||
|
||||
const punyCodes = instances.map(instance => toASCII(instance.host));
|
||||
|
||||
ctx.body = punyCodes;
|
||||
ctx.body = instances.map(instance => instance.host);
|
||||
});
|
||||
|
||||
// Return 404 for unknown API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue