diaspora/diaspora — Issue #2224: Shorten URLs to domain
Author: Pistos
Created: 2011-10-22 01:53:04+00:00
State: open

(See also the discussion on [a previous issue/pull request](https://github.com/diaspora/diaspora/pull/663).)

How about we take bare URLs (i.e. not Markdown ones) and display them with just the domain and some tiny suffix (say, ellipses)? This would be entirely on-render -- the FULL and unaltered original post is still stored in the DB. So, for example:

http://blog.diasporafoundation.org/2011/10/20/paypal-acts-like-a-pal-unfreezes-the-diaspora-communitys-donations.html

would become

http://[blog.diasporafoundation.org/...](http://blog.diasporafoundation.org/2011/10/20/paypal-acts-like-a-pal-unfreezes-the-diaspora-communitys-donations.html)

(Sorry, Github's markdown is messing with my example. The "http://" part is also supposed to be part of the link.)

All the visual benefits of URL shorteners, without the problems of third-party URL shorteners (the details of which are left as a research exercise for the reader).