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

Update Validator.java #50

Merged
merged 1 commit into from
Mar 14, 2013
Merged

Update Validator.java #50

merged 1 commit into from
Mar 14, 2013

Conversation

RawkBob
Copy link
Contributor

@RawkBob RawkBob commented Mar 14, 2013

The t.co URL shorter length needs to be increased as currently the hard coded values are shorter than the generated URLs returned by twitter causing the characters left count when composing a tweet to be incorrect and post failure notifications when trying to tweet.

Current values should be as detailed via the following api call:

https://dev.twitter.com/docs/api/1.1/get/help/configuration

A short term fix will be to increase the values in the following file
https://github.com/chrislacy/TweetLanes/blob/master/android/libraries/SocialNetLib/src/com/twitter/Validator.java - pull request: #50

Long term is to use the api call and use the values returned by the api.

Also, to note, there needs to be an additional value for tweets with media, currently twitter returns URLs with 23 characters which is 1 more than the non-HTTPS URLs and the same as HTTPS URLs.

sorry for the duplicates, never realised it would open an issue when I submitted the pull...

Updated t.co url length values
@Fammy
Copy link
Contributor

Fammy commented Mar 14, 2013

I'll take a look at this and get it in the 0.73.0 release. I also want to update to the latest com.twitter tools, which may have this fix as well. If that proves difficult (Chris made custom changes), I'll accept this pull request as the short term solution.

@ghost ghost assigned Fammy Mar 14, 2013
@Fammy Fammy merged commit 11ecc71 into chrislacy:develop Mar 14, 2013
@Fammy
Copy link
Contributor

Fammy commented Mar 14, 2013

Went with your change. Thanks!

@RawkBob RawkBob deleted the patch-1 branch March 15, 2013 23:54
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.

None yet

2 participants