forked from GNUsocial/gnu-social
Add internal URL shortener
This commit is contained in:
@@ -974,6 +974,12 @@ class Router
|
||||
array('action' => 'AtomPubMembershipFeed'),
|
||||
array('profile' => '[0-9]+'));
|
||||
|
||||
// URL shortening
|
||||
|
||||
$m->connect('url/:id',
|
||||
array('action' => 'redirecturl',
|
||||
'id' => '[0-9]+'));
|
||||
|
||||
// user stuff
|
||||
|
||||
Event::handle('RouterInitialized', array($m));
|
||||
|
Reference in New Issue
Block a user