diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-10 00:59:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-10 00:59:41 +0900 |
| commit | 236d72685dfec013135fc1450b890e33ec377de1 (patch) | |
| tree | b4d06e3587da7de4b35a822d6dcfe74367bdfa38 /src/server/api/endpoints/federation | |
| parent | Fix bug (diff) | |
| download | sharkey-236d72685dfec013135fc1450b890e33ec377de1.tar.gz sharkey-236d72685dfec013135fc1450b890e33ec377de1.tar.bz2 sharkey-236d72685dfec013135fc1450b890e33ec377de1.zip | |
More puny
Diffstat (limited to 'src/server/api/endpoints/federation')
| -rw-r--r-- | src/server/api/endpoints/federation/show-instance.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/api/endpoints/federation/show-instance.ts b/src/server/api/endpoints/federation/show-instance.ts index 875afa05b2..9afcf28a7c 100644 --- a/src/server/api/endpoints/federation/show-instance.ts +++ b/src/server/api/endpoints/federation/show-instance.ts @@ -1,6 +1,7 @@ import $ from 'cafy'; import define from '../../define'; import { Instances } from '../../../../models'; +import { toPuny } from '../../../../misc/convert-host'; export const meta = { tags: ['federation'], @@ -16,7 +17,7 @@ export const meta = { export default define(meta, async (ps, me) => { const instance = await Instances - .findOne({ host: ps.host }); + .findOne({ host: toPuny(ps.host) }); return instance; }); |