Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix

Andras Bacsaice7ffc8c4341
diff --git a/app/Notifications/Notifications/Application/DeployedSuccessfullyNotification.php b/app/Notifications/Notifications/Application/DeployedSuccessfullyNotification.php
index 245aa194b1..916cc82b89 100644
--- a/app/Notifications/Notifications/Application/DeployedSuccessfullyNotification.php
+++ b/app/Notifications/Notifications/Application/DeployedSuccessfullyNotification.php
@@ -80,11 +80,16 @@ class DeployedSuccessfullyNotification extends Notification implements ShouldQue
{
if ($this->preview) {
$message = '✅ Pull request #' . $this->preview->pull_request_id . ' of **' . $this->application_name . '** deployed successfully: ';
- $message .= '[Application Link](' . $this->preview->fqdn . ') | [Deployment logs](' . $this->deployment_url . ')';
+ if ($this->preview->fqdn) {
+ $message .= '[Application Link](' . $this->preview->fqdn . ') |';
+ }
+ $message .= '[Deployment logs](' . $this->deployment_url . ')';
} else {
- $message = '✅ A new version has been deployed of **' . $this->application_name . '**.';
- $message .= "\n\n";
- $message .= '[Application Link](' . $this->fqdn . ') | [Deployment logs](' . $this->deployment_url . ')';
+ $message = '✅ A new version has been deployed of **' . $this->application_name . '**: ';
+ if ($this->fqdn) {
+ $message .= '[Application Link](' . $this->fqdn . ') |';
+ }
+ $message .= '[Deployment logs](' . $this->deployment_url . ')';
}
return $message;
}