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

Twitter character count should be counting down, not up. #44

Open
shawninder opened this issue Oct 5, 2021 · 1 comment
Open

Twitter character count should be counting down, not up. #44

shawninder opened this issue Oct 5, 2021 · 1 comment

Comments

@shawninder
Copy link

The Twitter description field has a counter that helps us know how many characters we are using there.

I think it would make more sense to have a countdown here, indicating not how many characters are in there, but how many characters you can still add before you reach the twitter limit.

With this counting up method, we don't get the information of what that limit might be.

There is also the issue of how Twitter counts characters. If I recall correctly, a URL is always counted as 23 characters, even if it is much longer. Your counter on the twitter description field does not take this into account either.

Combined, these two issues make the existing counter pretty much useless.

Would you consider using a Twitter-specific countdown here instead? If you're not sure how to achieve this I could contribute a bit of code, let me know!

@shawninder
Copy link
Author

Apparently Twitter have a helper library for exactly this purpose: https://github.com/twitter/twitter-text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant