From 1d6b177a55111ede01fba1c08499036d474533bc Mon Sep 17 00:00:00 2001 From: Yassine Doghri <yassine@doghri.fr> Date: Fri, 18 Nov 2022 17:38:40 +0000 Subject: [PATCH] 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. --- modules/Fediverse/Config/Routes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/Fediverse/Config/Routes.php b/modules/Fediverse/Config/Routes.php index 06fa16de4e..d9dc51b131 100644 --- a/modules/Fediverse/Config/Routes.php +++ b/modules/Fediverse/Config/Routes.php @@ -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}', -- GitLab