DanielaSfregola / twitter4s

An asynchronous non-blocking Scala client for both the Twitter Rest and Streaming API
Apache License 2.0
256 stars 101 forks source link

Properly encode parentheses #436

Closed carterwalsh closed 2 years ago

carterwalsh commented 2 years ago

This PR fixes a regression introduced in https://github.com/DanielaSfregola/twitter4s/pull/411

Twitter expects parentheses to be encoded. We are experiencing tweet failures when the text contains parentheses.

I tested the search scenario this was changed for and Twitter properly decodes the encoded parentheses so this shouldn't cause a regression for the v2 search endpoint

image image