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

request - shorten links before testing against the 140 character limit #73

Open
SonOfSunTzu opened this issue Nov 19, 2013 · 2 comments
Labels

Comments

@SonOfSunTzu
Copy link

If the user cut and pastes a URL into twirssi it counts towards the 140 character limit in full, whereas only the shortened version will be used in the actual tweet.

If possible the original URL should be shortened to a t.co URL, or other service, before the number of characters is counted against the 140 character limit.

Thank you.

@zigdon
Copy link
Owner

zigdon commented Nov 19, 2013

It's not that we need to shorten the urls ourselves, but we should just adjust the counting so that we assume the current length of t.co urls (23 characters, currently).

@tsibley
Copy link

tsibley commented Jan 28, 2014

Alternatively, just recognize the error codes from Twitter's API for a too-long tweet. Since t.co shortening only happens upon status update, just ignore counting chars and simply try to update the status. If it works, you're done! Otherwise, tell the user "tweet too long" if that's the error cause.

Unless there's a need for an active char count in the status bar, it's easier just to avoid char counting all together.

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

No branches or pull requests

3 participants