Set locale on photobooth mail
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-13 16:24:29 +01:00
parent 9efea136bd
commit a23ce0c86f

View File

@@ -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.'),