Skip to content
Snippets Groups Projects
Commit 1d6b177a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: update actorUsername regex to get url_to actor

Since CI4 v4.2.8, the actor route is not retrieved anymore, this prevents users from creating a
podcast.
parent 2d824117
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,10 @@ declare(strict_types=1);
$routes = service('routes');
$routes->addPlaceholder('actorUsername', '[a-zA-Z0-9\_]{1,32}');
// FIXME: HOTFIX to be edited, add character to actorUsername regex to have it show up on routes list
// This bug is from CI4, since v4.2.8 with the following change
// https://github.com/codeigniter4/CodeIgniter4/pull/6644/files#diff-b28efb4cd802e8a3ead515befe9f46254b6cc9d17ab1beeb8a42a16cff69d283R1257
$routes->addPlaceholder('actorUsername', '[a-zA-Z0-9\_]{1,33}');
$routes->addPlaceholder(
'uuid',
'[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment