Merge pull request #10091 from firefly-iii/better-mute

Better mute
This commit is contained in:
James Cole
2025-04-03 09:33:26 +02:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ class UnknownUserLoginAttempt extends Notification
public function via(OwnerNotifiable $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('owner');
$isDemoSite = FireflyConfig::get('is_demo_site');
$isDemoSite = FireflyConfig::get('is_demo_site',false)->data;
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}

View File

@@ -105,7 +105,7 @@ class UserFailedLoginAttempt extends Notification
public function via(User $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('user', $notifiable);
$isDemoSite = FireflyConfig::get('is_demo_site');
$isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}

View File

@@ -64,7 +64,7 @@ class OwnerTestNotificationEmail extends Notification
*/
public function via(OwnerNotifiable $notifiable): array
{
$isDemoSite = FireflyConfig::get('is_demo_site');
$isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return [];
}

View File

@@ -61,7 +61,7 @@ class UserTestNotificationEmail extends Notification
*/
public function via(User $notifiable): array
{
$isDemoSite = FireflyConfig::get('is_demo_site');
$isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return [];
}

View File

@@ -103,7 +103,7 @@ class NewAccessToken extends Notification
public function via(User $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('user', $notifiable);
$isDemoSite = FireflyConfig::get('is_demo_site');
$isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}