From 5037ff7fefb018aa0b8ba08856856e94a1f23ada Mon Sep 17 00:00:00 2001 From: Chri$ Date: Sat, 4 Jan 2025 14:42:42 +0100 Subject: [PATCH] fix:[lar-169] mail bug for ThreadConverted --- app/Notifications/ThreadConvertedByCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Notifications/ThreadConvertedByCreator.php b/app/Notifications/ThreadConvertedByCreator.php index 89eb7b66..e2e62a27 100644 --- a/app/Notifications/ThreadConvertedByCreator.php +++ b/app/Notifications/ThreadConvertedByCreator.php @@ -13,7 +13,7 @@ final class ThreadConvertedByCreator extends Notification { use Queueable; - public function __construct(public Thread $thread) {} + public function __construct(protected Thread $thread) {} /** * Get the notification's delivery channels. @@ -31,7 +31,7 @@ public function via(object $notifiable): array public function toMail(object $notifiable): MailMessage { return (new MailMessage) - ->subject(__('pages/discussion.converted_by_creator')) + ->subject(__('pages/discussion.converted_by_creator.subject')) ->line(__('pages/discussion.converted_by_creator.converted_line')) ->line(__('pages/discussion.converted_by_creator.thread_title').$this->thread->title) ->action(__('pages/discussion.converted_by_creator.action_text'), route('forum.show', $this->thread))