talklittle / reddit-is-fun

OLD VERSION 1.3 of reddit is fun -- Android app to interact with reddit.com
GNU General Public License v3.0
372 stars 157 forks source link

Better handling of links to subreddits #224

Closed phobiac closed 12 years ago

phobiac commented 12 years ago

On the main website a subreddit name such as /r/test is turned into a link to www.reddit.com/r/test. Reddit is Fun seems to pick up that these are links, and displays them accordingly, but doesn't actually link to the subreddit in question. (They do not show up in the list of links when you long press on a comment)

talklittle commented 12 years ago

breaking the youtu.be links bug out into issue #228

talklittle commented 12 years ago

fixed

talklittle commented 12 years ago

still allows double linking e.g. if someone writes full URL http://www.reddit.com/r/test but that's ok because this way it also supports linking to subreddit in case of direct link to comment thread, like http://www.reddit.com/r/test/comments/o98h5/testing_links_to_other_subreddits_in_comments/

talklittle commented 12 years ago

disregard previous comment; handle "double-linking" by keeping track of start-end ranges and disallow linking to overlapping links