Merge pull request #10810 from MrPetovan/bug/photo-route
Fix regular expression in the user avatar photo routes
This commit is contained in:
commit
ec4034ad14
|
@ -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]],
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in a new issue