IncrediblePoneys / claverack

A mastodon desktop client.
MIT License
5 stars 3 forks source link

Handle link click in toots #35

Open Shahor opened 7 years ago

Shahor commented 7 years ago

Open urls in default browser

Fiaxhs commented 7 years ago

This is cool for now, but maybe we should handle urls by target domain, or something like that. Everything that is a toot/toot media/profile/search whatever, matching a regexp or something, based on active accouts -> open in app, and everything else in the browser. This may be a less difficult approach to this problem.

Shahor commented 7 years ago

we'll have to find a proper strategy for that. The problem is the way the toot content is formatted. Links don't always look the same and we will have to perform some silly stuff (like the naive implementation I did for now) to handle this properly. We'll see how it goes.