[CORE] Make avatars be served with the same mechanism as attachments

This commit is contained in:
Hugo Sales
2020-03-06 17:34:49 +00:00
committed by Diogo Peralta Cordeiro
parent 1ea12e0cdf
commit b7ed15c865
4 changed files with 76 additions and 3 deletions

View File

@@ -1040,6 +1040,10 @@ class Router
['nickname' => Nickname::DISPLAY_FMT]);
}
$m->connect('avatar/:file',
['action' => 'avatar'],
['file' => '.*']);
$m->connect(':nickname/avatar',
['action' => 'avatarbynickname'],
['nickname' => Nickname::DISPLAY_FMT]);