Skip to content

Commit

Permalink
Now confirmed, this is the correct behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Nov 2, 2023
1 parent 7ab5e71 commit 717d241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/http/chan_kofi.pike
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mapping(string:mixed)|string|Concurrent.Future http_request(Protocols.HTTP.Serve
if (req->request_type == "POST") {
//Ko-fi webhook. Check the Verification Token against the one
//we have stored, and if it matches, fire all the signals.
mapping data = Standards.JSON.decode(req->variables->data); //If malformed, will bomb and send back a 500.
mapping data = Standards.JSON.decode(req->variables->data); //If malformed, will bomb and send back a 500. (Note: Don't use decode_utf8 here, it's already Unicode text.)
if (!mappingp(data)) return (["error": 400, "type": "text/plain", "data": "No data mapping given"]);
mapping cfg = persist_status->has_path("kofi", req->misc->channel->name[1..]);
if (!stringp(data->verification_token) || cfg->?verification_token != data->verification_token)
Expand Down

0 comments on commit 717d241

Please sign in to comment.