1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-11-30 15:58:01 +09:00

hostName이 null로 뜨는 문제 수정

미스키 API 너무 이랬다저랬다해
This commit is contained in:
DW 2019-11-11 21:03:56 +11:00
parent 897530e4a9
commit 92a037df03

View File

@ -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}`
};
}