mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 11:56:44 -06:00
Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
commit
397d16ecbb
2 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,7 @@
|
|||
"gulp-replace": "0.5.4",
|
||||
"gulp-stylus": "2.6.0",
|
||||
"gulp-tslint": "7.1.0",
|
||||
"gulp-typescript": "3.1.4",
|
||||
"gulp-typescript": "3.1.5",
|
||||
"gulp-uglify": "2.0.1",
|
||||
"gulp-util": "3.0.8",
|
||||
"inquirer": "3.0.1",
|
||||
|
|
|
@ -23,6 +23,7 @@ module.exports = async (app: express.Application) => {
|
|||
app.post('/hooks/github', (req, res, next) => {
|
||||
if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer('sha1=' + crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')))) {
|
||||
handler.emit(req.headers['x-github-event'], req.body);
|
||||
res.sendStatus(200);
|
||||
} else {
|
||||
res.sendStatus(400);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue