veskuh / Tweetian

A feature-rich Twitter app for smartphones developed using Qt/QML
GNU General Public License v3.0
50 stars 26 forks source link

Fix Instagram and add Glui image loading #66

Closed hugovk closed 10 years ago

hugovk commented 10 years ago

Images shared with Instagram nearly always end with a slash (when shared via the client), but of course it's possible for someone to copy and paste one without (e.g. http://instagram.com/p/j4k_ZioaCo) as NASA recently did (https://twitter.com/NASA/status/429688471423156225) which was spread far and wide.

URLs without trailing slashes weren't showing the images. Here's a fix.

Also, I've added image loading for glui.me URLs. Glui is a Mac app for easily sharing (and annotating) screenshots via Dropbox. For example, the code now changes: http://glui.me/?i=98tadpgxfk2zudn/2014-02-01_at_16.20.png/ into: http://dl.dropboxusercontent.com/s/98tadpgxfk2zudn/2014-02-01%20at%2016.20.png

Tested on Symbian (Nokia 808) and checked Harmattan builds.

veskuh commented 10 years ago

Sorry, been a bit distracted and haven't taken a look at this. This was accepted to upstream so I think I'll just update the upstream version and merge the changes to sailfish-port.

hugovk commented 10 years ago

Yes, that makes sense, and makes merging easier all around!