mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-11 00:37:55 +03:00
400dba62a9
refs https://github.com/TryGhost/Ghost/issues/12061 Due to a bug in Ghost webhooks are now created with a trailing "/" which meant that the previous webhooks to that (without a slash) was never removed. This results in users receiving emails from stripe about failed webhook delivery, which is not good at all. This fix lists out the webhooks and finds (if present) the webhook which matches the current URL, minus the trailing slash. If found it will then attempt to delete that webhook thus stopping the emails from Stripe. I've added a note to remove this code as it should only ever need to run once, and can be removed for the Ghost release after these changes. |
||
---|---|---|
.. | ||
stripe | ||
common.js | ||
geolocation.js | ||
metadata.js | ||
tokens.js | ||
users.js |