1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-11 13:18:59 +09:00

[Server] Fix bug

This commit is contained in:
syuilo 2017-01-21 14:41:35 +09:00
parent f30262530d
commit 0e5212afd5

View File

@ -14,7 +14,7 @@ module.exports = (app: express.Application) => {
callbackUrl: config.url + '/tw/cb'
});
app.get('connect/twitter', async (req, res): Promise<any> => {
app.get('/connect/twitter', async (req, res): Promise<any> => {
if (res.locals.user == null) return res.send('plz signin');
const ctx = await twAuth.begin();
redis.set(res.locals.user, JSON.stringify(ctx));