6 - Fix ntfy threshold config typing and layout title default

This commit is contained in:
myrmidex 2026-04-29 23:25:36 +02:00
parent 31a53de9fb
commit f80132dfae
4 changed files with 5 additions and 5 deletions

View file

@ -16,10 +16,10 @@ public function recordFailure(Instance $instance, string $message): void
$instance->refresh(); $instance->refresh();
$ntfyUrl = config('services.ntfy.url'); $ntfyUrl = config('services.ntfy.url');
$ntfyThreshold = (int) config('services.ntfy.threshold'); $ntfyThreshold = config('services.ntfy.threshold');
$ntfyTopic = config('services.ntfy.topic'); $ntfyTopic = config('services.ntfy.topic');
if ($ntfyUrl === null || $ntfyThreshold === 0 || $ntfyTopic === null) { if ($ntfyUrl === null || $ntfyThreshold === null || $ntfyThreshold === 0 || $ntfyTopic === null) {
return; return;
} }

View file

@ -17,7 +17,7 @@
'ntfy' => [ 'ntfy' => [
'url' => env('NTFY_URL') ?: null, 'url' => env('NTFY_URL') ?: null,
'topic' => env('NTFY_TOPIC') ?: null, 'topic' => env('NTFY_TOPIC') ?: null,
'threshold' => env('NTFY_THRESHOLD'), 'threshold' => env('NTFY_THRESHOLD') !== null ? (int) env('NTFY_THRESHOLD') : null,
], ],
'postmark' => [ 'postmark' => [

View file

@ -52,7 +52,7 @@ public function handle(): int
$errors->each(fn (array $errorArr) => PollFailed::dispatch( $errors->each(fn (array $errorArr) => PollFailed::dispatch(
$errorArr['instance'], $errorArr['instance'],
$errorArr['error'] ?? '', $errorArr['error'],
now()->toImmutable(), now()->toImmutable(),
)); ));

View file

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trove @yield('title')</title> <title>Trove @yield('title', config('app.name'))</title>
@vite(['resources/css/app.css', 'resources/js/app.js']) @vite(['resources/css/app.css', 'resources/js/app.js'])