From 11bfc37db7d05954a484a84ccd6f45c5b3042bc7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 26 Mar 2025 08:31:11 +0100 Subject: [PATCH 1/2] refactor(notifications): update Telegram button URL for staging environment --- app/Notifications/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/Test.php b/app/Notifications/Test.php index 2a0581bbf..0b1d8d6b1 100644 --- a/app/Notifications/Test.php +++ b/app/Notifications/Test.php @@ -83,7 +83,7 @@ class Test extends Notification implements ShouldQueue 'buttons' => [ [ 'text' => 'Go to your dashboard', - 'url' => base_url(), + 'url' => isDev() ? 'https://staging-but-dev.coolify.io' : base_url(), ], ], ]; From 63c496feeecd960363a9ff20bd865bc64a36131d Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:44:11 +0100 Subject: [PATCH 2/2] refactor(models): remove unnecessary cloud check in isEnabled method --- app/Models/EmailNotificationSettings.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Models/EmailNotificationSettings.php b/app/Models/EmailNotificationSettings.php index ae118986f..445987619 100644 --- a/app/Models/EmailNotificationSettings.php +++ b/app/Models/EmailNotificationSettings.php @@ -70,10 +70,6 @@ class EmailNotificationSettings extends Model public function isEnabled() { - if (isCloud()) { - return true; - } - return $this->smtp_enabled || $this->resend_enabled || $this->use_instance_email_settings; } }