From b0510ad680bd7e0554a6b14c9d60ed08eb788889 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 9 Sep 2021 20:59:58 +1000 Subject: [PATCH] Fixes for support message --- app/Mail/SupportMessageSent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Mail/SupportMessageSent.php b/app/Mail/SupportMessageSent.php index e88251389091..7ea23586ef73 100644 --- a/app/Mail/SupportMessageSent.php +++ b/app/Mail/SupportMessageSent.php @@ -62,9 +62,10 @@ class SupportMessageSent extends Mailable $company = auth()->user()->company(); $user = auth()->user(); $db = str_replace("db-ninja-", "", $company->db); - + $is_large = $company->is_large ? "L" : ""; + if(Ninja::isHosted()) - $subject = "{$priority}Hosted-{$db}-[{$company->is_large}] :: {$plan} :: ".date('M jS, g:ia'); + $subject = "{$priority}Hosted-{$db}{$is_large} :: {$plan} :: ".date('M jS, g:ia'); else $subject = "{$priority}Self Hosted :: {$plan} :: ".date('M jS, g:ia');