From 92a037df03967f5a22b82f4b12588bd2d92ad4dc Mon Sep 17 00:00:00 2001 From: DW Date: Mon, 11 Nov 2019 21:03:56 +1100 Subject: [PATCH] =?UTF-8?q?hostName=EC=9D=B4=20null=EB=A1=9C=20=EB=9C=A8?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 미스키 API 너무 이랬다저랬다해 --- src/server/api/web/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/web/oauth.ts b/src/server/api/web/oauth.ts index 389490e..4f72194 100644 --- a/src/server/api/web/oauth.ts +++ b/src/server/api/web/oauth.ts @@ -166,7 +166,7 @@ router.get('/redirect', async (ctx: Koa.ParameterizedContext) => hostName: app.hostName, avatarUrl: res.user.avatarUrl as string, accessToken: crypto.createHash('sha256').update(res.accessToken + app.clientSecret).digest('hex'), - url: `https://${res.user.host}/@${res.user.username}`, + url: `https://${app.hostName}/@${res.user.username}`, acct: `${res.user.username}@${app.hostName}` }; }