Mercurial > prosody-modules
diff mod_pubsub_github/mod_pubsub_github.lua @ 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 | 7dbde05b48a9 |
children | a65f4297264b |
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