forked from GNUsocial/gnu-social
[CORE][UI][ROUTER] Added view action, which inlines images and videos but downloads everything else. Fixed File url to get an URL fromthe view action, so when a making a remote notice, the correct URL is used, not accessing directly to the file
This commit is contained in:
committed by
Diogo Cordeiro
parent
3c9a07677e
commit
c7475d78b4
@@ -223,6 +223,10 @@ class Router
|
||||
array('action' => 'attachment'),
|
||||
array('attachment' => '[0-9]+'));
|
||||
|
||||
$m->connect('attachment/:attachment/view',
|
||||
array('action' => 'attachment_view'),
|
||||
array('attachment' => '[0-9]+'));
|
||||
|
||||
$m->connect('attachment/:attachment/download',
|
||||
array('action' => 'attachment_download'),
|
||||
array('attachment' => '[0-9]+'));
|
||||
|
Reference in New Issue
Block a user