diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 07:41:55 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 07:41:55 +0900 |
| commit | 44b6ddb262f7b3f59cbd05bda674476cedb15b60 (patch) | |
| tree | 0654fb514a548d03f90ad1c1cb037bbb98ab41b3 /src/web | |
| parent | [Test] Add some tests (diff) | |
| download | sharkey-44b6ddb262f7b3f59cbd05bda674476cedb15b60.tar.gz sharkey-44b6ddb262f7b3f59cbd05bda674476cedb15b60.tar.bz2 sharkey-44b6ddb262f7b3f59cbd05bda674476cedb15b60.zip | |
Fix bug
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/service/twitter/begin.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/service/twitter/begin.ts b/src/web/service/twitter/begin.ts index 675848f5ac..c0799df5c8 100644 --- a/src/web/service/twitter/begin.ts +++ b/src/web/service/twitter/begin.ts @@ -9,7 +9,9 @@ const client = new Twitter({ }); module.exports = (req: express.Request, res: express.Response) => { - client.post('oauth/request_token', (x, y, z) => { + client.post('oauth/request_token', { + oauth_callback: config.url + '/tw/cb' + }, (x, y, z) => { console.log(x); console.log(y); console.log(z); |