Fix regular expression in the user avatar photo routes

This commit is contained in:
Hypolite Petovan 2021-10-03 07:37:30 -04:00
parent e8becc1538
commit f426a5bd98

View file

@ -373,10 +373,10 @@ return [
'/photo' => [
'/{name}' => [Module\Photo::class, [R::GET]],
// User Id Fallback, to remove after version 2021.12
'/{type}/{uid_ext:\d+}' => [Module\Photo::class, [R::GET]],
'/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
// User Id Fallback, to remove after version 2021.12
'/{type}/{customsize}/{uid_ext:\d+}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
'/{type}/{customsize}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
],