Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use UTF8 encoding for webhook JSON #714

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

joshuaboniface
Copy link
Contributor

Description

Switch to using UTF8 encoding instead of ASCII for Webhook bodies. With ASCII, extended characters like emojis will throw errors here, but UTF8 allows encoding anything in the JSON payload.

Screenshot (if UI-related)

To-Dos

  • Successful build yarn build
  • Translation keys yarn i18n:extract
  • Database migration (if required)

Issues Fixed or Closed

@joshuaboniface
Copy link
Contributor Author

Now, this might (will?) possibly break existing webhooks, but I'm not 100% sure since ASCII should just be a subset of UTF8. Will need to be tested but since I'm on a new instance I can't.

@fallenbagel
Copy link
Owner

LGTM!

Copy link
Owner

@fallenbagel fallenbagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait if you could, would it be possible to change the commit message to conform to the conventional commits specification?

@joshuaboniface joshuaboniface changed the title Use UTF8 encoding for webhook JSON fix: use UTF8 encoding for webhook JSON Apr 29, 2024
@fallenbagel fallenbagel merged commit c0a0b9c into fallenbagel:develop Apr 29, 2024
7 checks passed
@fallenbagel
Copy link
Owner

@all-contributors please add @joshuaboniface for code

Copy link
Contributor

@fallenbagel

I've put up a pull request to add @joshuaboniface! 🎉

@fallenbagel
Copy link
Owner

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@joshuaboniface joshuaboniface deleted the fix-webhook-utf8 branch May 29, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhooks error when containing unicode characters
2 participants