diff --git a/app/Listeners/Gotify/SendSpeedtestCompletedNotification.php b/app/Listeners/Gotify/SendSpeedtestCompletedNotification.php index af5e016ee..92eb44993 100644 --- a/app/Listeners/Gotify/SendSpeedtestCompletedNotification.php +++ b/app/Listeners/Gotify/SendSpeedtestCompletedNotification.php @@ -46,6 +46,11 @@ public function handle(SpeedtestCompleted $event): void 'speedtest_url' => $event->result->result_url, 'url' => url('/admin/results'), ])->render(), + 'extras' => [ + 'client::display' => [ + 'contentType' => 'text/markdown', + ], + ], ]; foreach ($notificationSettings->gotify_webhooks as $url) { diff --git a/app/Listeners/Gotify/SendSpeedtestThresholdNotification.php b/app/Listeners/Gotify/SendSpeedtestThresholdNotification.php index 8152c2e21..6fd95cb55 100644 --- a/app/Listeners/Gotify/SendSpeedtestThresholdNotification.php +++ b/app/Listeners/Gotify/SendSpeedtestThresholdNotification.php @@ -72,6 +72,11 @@ public function handle(SpeedtestCompleted $event): void 'speedtest_url' => $event->result->result_url, 'url' => url('/admin/results'), ])->render(), + 'extras' => [ + 'client::display' => [ + 'contentType' => 'text/markdown', + ], + ], ]; foreach ($notificationSettings->gotify_webhooks as $url) { diff --git a/resources/views/gotify/speedtest-completed.blade.php b/resources/views/gotify/speedtest-completed.blade.php index ee50f07e3..cc6823c8a 100644 --- a/resources/views/gotify/speedtest-completed.blade.php +++ b/resources/views/gotify/speedtest-completed.blade.php @@ -1,13 +1,13 @@ -Speedtest Completed - #{{ $id }} +**Speedtest Completed - #{{ $id }}** -A new speedtest was completed using {{ $service }}. +A new speedtest was completed using **{{ $service }}**. -- Server name: {{ $serverName }} -- Server ID: {{ $serverId }} -- ISP: {{ $isp }} -- Ping: {{ $ping }} -- Download: {{ $download }} -- Upload: {{ $upload }} -- Packet Loss: {{ $packetLoss }} % -- Ookla Speedtest:{{ $speedtest_url }} -- URL: {{ $url }} +- **Server name:** {{ $serverName }} +- **Server ID:** {{ $serverId }} +- **ISP:** {{ $isp }} +- **Ping:** {{ $ping }} +- **Download:** {{ $download }} +- **Upload:** {{ $upload }} +- **Packet Loss:** {{ $packetLoss }} **%** +- **Ookla Speedtest:** [{{ $speedtest_url }}]({{ $speedtest_url }}) +- **URL:** [{{ $url }}]({{ $url }}) diff --git a/resources/views/gotify/speedtest-threshold.blade.php b/resources/views/gotify/speedtest-threshold.blade.php index 4a7fe325e..1cad8abf1 100644 --- a/resources/views/gotify/speedtest-threshold.blade.php +++ b/resources/views/gotify/speedtest-threshold.blade.php @@ -1,9 +1,9 @@ -Speedtest Threshold Breached - #{{ $id }} +**Speedtest Threshold Breached - #{{ $id }}** -A new speedtest was completed using {{ $service }} on {{ $isp }} but a threshold was breached. +A new speedtest was completed using **{{ $service }}** on **{{ $isp }}** but a threshold was breached. @foreach ($metrics as $item) -- {{ $item['name'] }} {{ $item['threshold'] }}: {{ $item['value'] }} +- {{ $item['name'] }} {{ $item['threshold'] }}: **{{ $item['value'] }}** @endforeach -- Ookla Speedtest: {{ $speedtest_url }} -- URL: {{ $url }} +- **Ookla Speedtest:** [{{ $speedtest_url }}]({{ $speedtest_url }}) +- **URL:** [{{ $url }}]({{ $url }})