Loading app/Config/Database.php +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class Database extends Config /** * The default database connection. * * @var array<string, string|bool|int|array> * @var array<string, mixed> */ public array $default = [ 'DSN' => '', Loading @@ -51,7 +51,7 @@ class Database extends Config * * @noRector StringClassNameToClassConstantRector * * @var array<string, string|bool|int|array> * @var array<string, mixed> */ public array $tests = [ 'DSN' => '', Loading app/Config/Fediverse.php +10 −4 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ declare(strict_types=1); namespace Config; use App\Libraries\NoteObject; use Exception; use Modules\Fediverse\Config\Fediverse as FediverseBaseConfig; class Fediverse extends FediverseBaseConfig Loading @@ -26,10 +27,15 @@ class Fediverse extends FediverseBaseConfig { parent::__construct(); try { $appTheme = service('settings') ->get('App.theme'); $defaultBanner = config('Images') ->podcastBannerDefaultPaths[service('settings')->get('App.theme')] ?? config( 'Images' )->podcastBannerDefaultPaths['default']; ->podcastBannerDefaultPaths[$appTheme] ?? config('Images')->podcastBannerDefaultPaths['default']; } catch (Exception) { $defaultBanner = config('Images') ->podcastBannerDefaultPaths['default']; } ['dirname' => $dirname, 'extension' => $extension, 'filename' => $filename] = pathinfo( $defaultBanner['path'] Loading app/Config/Filters.php +5 −4 Original line number Diff line number Diff line Loading @@ -39,18 +39,19 @@ class Filters extends BaseConfig /** * List of filter aliases that are always applied before and after every request. * * @var array<string, string[]> * @var array<string, mixed> */ public array $globals = [ 'before' => [ // 'honeypot', // 'csrf', 'csrf' => [ 'except' => ['@[a-zA-Z0-9\_]{1,32}/inbox'], ], // 'invalidchars', ], 'after' => [ 'toolbar', // 'honeypot', // 'honeypot', // 'secureheaders', ], ]; Loading app/Config/Paths.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Paths * the path if the folder is not in the same directory as this file. */ public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/codeigniter4/system'; __DIR__ . '/../../vendor/codeigniter4/framework/system'; /** * --------------------------------------------------------------- Loading app/Config/Security.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Security extends BaseConfig * * Randomize the CSRF Token for added security. */ public bool $tokenRandomize = false; public bool $tokenRandomize = true; /** * -------------------------------------------------------------------------- Loading Loading
app/Config/Database.php +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class Database extends Config /** * The default database connection. * * @var array<string, string|bool|int|array> * @var array<string, mixed> */ public array $default = [ 'DSN' => '', Loading @@ -51,7 +51,7 @@ class Database extends Config * * @noRector StringClassNameToClassConstantRector * * @var array<string, string|bool|int|array> * @var array<string, mixed> */ public array $tests = [ 'DSN' => '', Loading
app/Config/Fediverse.php +10 −4 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ declare(strict_types=1); namespace Config; use App\Libraries\NoteObject; use Exception; use Modules\Fediverse\Config\Fediverse as FediverseBaseConfig; class Fediverse extends FediverseBaseConfig Loading @@ -26,10 +27,15 @@ class Fediverse extends FediverseBaseConfig { parent::__construct(); try { $appTheme = service('settings') ->get('App.theme'); $defaultBanner = config('Images') ->podcastBannerDefaultPaths[service('settings')->get('App.theme')] ?? config( 'Images' )->podcastBannerDefaultPaths['default']; ->podcastBannerDefaultPaths[$appTheme] ?? config('Images')->podcastBannerDefaultPaths['default']; } catch (Exception) { $defaultBanner = config('Images') ->podcastBannerDefaultPaths['default']; } ['dirname' => $dirname, 'extension' => $extension, 'filename' => $filename] = pathinfo( $defaultBanner['path'] Loading
app/Config/Filters.php +5 −4 Original line number Diff line number Diff line Loading @@ -39,18 +39,19 @@ class Filters extends BaseConfig /** * List of filter aliases that are always applied before and after every request. * * @var array<string, string[]> * @var array<string, mixed> */ public array $globals = [ 'before' => [ // 'honeypot', // 'csrf', 'csrf' => [ 'except' => ['@[a-zA-Z0-9\_]{1,32}/inbox'], ], // 'invalidchars', ], 'after' => [ 'toolbar', // 'honeypot', // 'honeypot', // 'secureheaders', ], ]; Loading
app/Config/Paths.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Paths * the path if the folder is not in the same directory as this file. */ public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/codeigniter4/system'; __DIR__ . '/../../vendor/codeigniter4/framework/system'; /** * --------------------------------------------------------------- Loading
app/Config/Security.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Security extends BaseConfig * * Randomize the CSRF Token for added security. */ public bool $tokenRandomize = false; public bool $tokenRandomize = true; /** * -------------------------------------------------------------------------- Loading