Set locale on photobooth mail
This commit is contained in:
@@ -90,9 +90,7 @@ class PhotoboothController extends Controller
|
||||
$eventName = $this->resolveEventName($event, $locale);
|
||||
$recipientName = $user->fullName ?? $user->name ?? $user->email;
|
||||
|
||||
Mail::to($user->email)
|
||||
->locale($locale)
|
||||
->queue(new PhotoboothUploaderDownload(
|
||||
$mail = (new PhotoboothUploaderDownload(
|
||||
recipientName: $recipientName,
|
||||
eventName: $eventName,
|
||||
links: [
|
||||
@@ -100,7 +98,9 @@ class PhotoboothController extends Controller
|
||||
'macos' => url('/downloads/PhotoboothUploader-macos-x64'),
|
||||
'linux' => url('/downloads/PhotoboothUploader-linux-x64'),
|
||||
],
|
||||
));
|
||||
))->locale($locale);
|
||||
|
||||
Mail::to($user->email)->queue($mail);
|
||||
|
||||
return response()->json([
|
||||
'message' => __('Download links sent via email.'),
|
||||
|
||||
Reference in New Issue
Block a user