Resolved - Twitter Links Broken
I still don't know why it appears that the ID gets rounded, but I've figured out a workaround. The Twitter API actually sends back both an `id` and an `id_str` parameter. They contain the same value. Sencha seems to mangle `id`, but thankfully `id_str` is left unchanged. The workaround then involves two simple things:
1) Add `id_str` to the Tweet Model
2) Update how the window.location string gets built when opening the tweet in a new window
Working from the O'Reilly Conference App sample app, I had to modify two files:
I modified examples/oreilly/src/Models.js, changing line 28 from:
Code:
fields: ['id', 'text', 'to_user_id', 'from_user', 'created_at', 'profile_image_url']
...to:
Code:
fields: ['id', 'id_str', 'text', 'to_user_id', 'from_user', 'created_at', 'profile_image_url']
Then, I modified examples/oreilly/src/TweetList.js, changing line 71 from:
Code:
window.location = 'http://twitter.com/' + records[0].data.from_user + '/status/' + records[0].data.id
...to:
Code:
window.location = 'http://twitter.com/' + records[0].data.from_user + '/status/' + records[0].data.id_str
Hope someone else finds this helpful.