Mercurial > prosody-modules
changeset 1620:754d97ba333d
mod_pubsub_github: Update for new Github webhook format
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Feb 2015 16:42:36 +0000 |
parents | 43c54a27bab2 |
children | 738e9874a374 |
files | mod_pubsub_github/mod_pubsub_github.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_github/mod_pubsub_github.lua Fri Feb 27 16:25:48 2015 +0000 +++ b/mod_pubsub_github/mod_pubsub_github.lua Fri Feb 27 16:42:36 2015 +0000 @@ -8,7 +8,7 @@ local node = module:get_option("github_node", "github"); function handle_POST(event) - local data = json.decode(formdecode(event.request.body).payload); + local data = json.decode(event.request.body); if not data then return "Invalid JSON. From you of all people..."; end