diff --git a/app/Notifications/Application/DeploymentFailed.php b/app/Notifications/Application/DeploymentFailed.php index 1809da3683..410ee1dc4c 100644 --- a/app/Notifications/Application/DeploymentFailed.php +++ b/app/Notifications/Application/DeploymentFailed.php @@ -75,11 +75,11 @@ public function toMail(): MailMessage public function toDiscord(): string { if ($this->preview) { - $message = 'Coolify: Pull request #'.$this->preview->pull_request_id.' of '.$this->application_name.' ('.$this->preview->fqdn.') deployment failed: '; - $message .= '[View Deployment Logs]('.$this->deployment_url.')'; + $message = 'Coolify: Pull request #'.$this->preview->pull_request_id.' of '.$this->application_name.' (<'.$this->preview->fqdn.'>) deployment failed: '; + $message .= '[View Deployment Logs](<'.$this->deployment_url.'>)'; } else { - $message = 'Coolify: Deployment failed of '.$this->application_name.' ('.$this->fqdn.'): '; - $message .= '[View Deployment Logs]('.$this->deployment_url.')'; + $message = 'Coolify: Deployment failed of '.$this->application_name.' (<'.$this->fqdn.'>): '; + $message .= '[View Deployment Logs](<'.$this->deployment_url.'>)'; } return $message; diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index 5085065c20..3e6ce44835 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -85,17 +85,17 @@ public function toDiscord(): string '; if ($this->preview->fqdn) { - $message .= '[Open Application]('.$this->preview->fqdn.') | '; + $message .= '[Open Application](<'.$this->preview->fqdn.'>) | '; } - $message .= '[Deployment logs]('.$this->deployment_url.')'; + $message .= '[Deployment logs](<'.$this->deployment_url.'>)'; } else { $message = 'Coolify: New version successfully deployed of '.$this->application_name.' '; if ($this->fqdn) { - $message .= '[Open Application]('.$this->fqdn.') | '; + $message .= '[Open Application](<'.$this->fqdn.'>) | '; } - $message .= '[Deployment logs]('.$this->deployment_url.')'; + $message .= '[Deployment logs](<'.$this->deployment_url.'>)'; } return $message; diff --git a/app/Notifications/Application/StatusChanged.php b/app/Notifications/Application/StatusChanged.php index 53ed8a5896..40122deb2d 100644 --- a/app/Notifications/Application/StatusChanged.php +++ b/app/Notifications/Application/StatusChanged.php @@ -60,7 +60,7 @@ public function toDiscord(): string $message = 'Coolify: '.$this->resource_name.' has been stopped. '; - $message .= '[Open Application in Coolify]('.$this->resource_url.')'; + $message .= '[Open Application in Coolify](<'.$this->resource_url.'>)'; return $message; } diff --git a/app/Notifications/ScheduledTask/TaskFailed.php b/app/Notifications/ScheduledTask/TaskFailed.php index 479cc1aa14..c9fd3b8c61 100644 --- a/app/Notifications/ScheduledTask/TaskFailed.php +++ b/app/Notifications/ScheduledTask/TaskFailed.php @@ -48,7 +48,7 @@ public function toMail(): MailMessage public function toDiscord(): string { - return "Coolify: Scheduled task ({$this->task->name}, [link]({$this->url})) failed with output: {$this->output}"; + return "Coolify: Scheduled task ({$this->task->name}, [link](<{$this->url}>)) failed with output: {$this->output}"; } public function toTelegram(): array diff --git a/app/Notifications/Server/ForceDisabled.php b/app/Notifications/Server/ForceDisabled.php index 6377f2f150..b2d6d28e45 100644 --- a/app/Notifications/Server/ForceDisabled.php +++ b/app/Notifications/Server/ForceDisabled.php @@ -52,7 +52,7 @@ public function toMail(): MailMessage public function toDiscord(): string { - $message = "Coolify: Server ({$this->server->name}) disabled because it is not paid!\n All automations and integrations are stopped.\nPlease update your subscription to enable the server again [here](https://app.coolify.io/subscriptions)."; + $message = "Coolify: Server ({$this->server->name}) disabled because it is not paid!\n All automations and integrations are stopped.\nPlease update your subscription to enable the server again [here]()."; return $message; } diff --git a/app/Notifications/Server/HighDiskUsage.php b/app/Notifications/Server/HighDiskUsage.php index 34cb220910..09444947ae 100644 --- a/app/Notifications/Server/HighDiskUsage.php +++ b/app/Notifications/Server/HighDiskUsage.php @@ -54,7 +54,7 @@ public function toMail(): MailMessage public function toDiscord(): string { - $message = "Coolify: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->docker_cleanup_threshold}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips: https://coolify.io/docs/knowledge-base/server/automated-cleanup."; + $message = "Coolify: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->docker_cleanup_threshold}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips: ."; return $message; } diff --git a/app/Notifications/Test.php b/app/Notifications/Test.php index 3b46a9a249..6c39c97e13 100644 --- a/app/Notifications/Test.php +++ b/app/Notifications/Test.php @@ -33,7 +33,7 @@ public function toDiscord(): string { $message = 'Coolify: This is a test Discord notification from Coolify.'; $message .= "\n\n"; - $message .= '[Go to your dashboard]('.base_url().')'; + $message .= '[Go to your dashboard](<'.base_url().'>)'; return $message; }