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
Error When Twitter Display Name Is 31+ Characters #28
Comments
Hi, In the meantime, I published a test release with a quick fix if you want to try it out and let me know if it works in your case:
|
Well, I implemented a much cleaner solution based on what platform the instance seems to be (by checking the version it reports back when asked). Here's the commit 8537c7c I also uploaded it as a test release on PyPi, you can install it with: pip install --index-url https://test.pypi.org/simple/ pleroma-bot --upgrade I tested it with a few Mastodon instances, please let me know if it works with your config. |
@robertoszek Awesome! I'll give it a shot soon™! |
Changes promoted to master. Let me know if you experience any issues with the fix implementation. |
When a Twitter user's display name is 31+ characters you get the following error:
After some debugging I was able to work around this by updating:
https://github.com/robertoszek/pleroma-twitter-info-grabber/blob/83da9b65e1e4eac35609900ef165f4deb3e22e59/pleroma_bot/_pleroma.py#L196
to:
In my opinion it's less than ideal to just chop away data. Unfortunately what I believe would be the best fix fix would need to come from Mastodon in this case where the character limit on the display_name is upped. It looks like Twitter's display name limit is currently 50 characters.
The text was updated successfully, but these errors were encountered: