Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: help

Andras Bacsai81f7a65dd53d
diff --git a/app/Http/Livewire/Help.php b/app/Http/Livewire/Help.php
index bfdb875b3b..8edd001b48 100644
--- a/app/Http/Livewire/Help.php
+++ b/app/Http/Livewire/Help.php
@@ -28,7 +28,7 @@ class Help extends Component
public function submit()
{
try {
- $this->rateLimit(1, 60);
+ // $this->rateLimit(1, 1);
$this->validate();
$subscriptionType = auth()->user()?->subscription?->type() ?? 'Free';
$debug = "Route: {$this->path}";
@@ -41,7 +41,7 @@ class Help extends Component
]
);
$mail->subject("[HELP - {$subscriptionType}]: {$this->subject}");
- send_user_an_email($mail, auth()->user()?->email, '[email protected]');
+ send_user_an_email($mail, auth()->user()?->email, '[email protected]');
$this->emit('success', 'Your message has been sent successfully. We will get in touch with you as soon as possible.');
} catch (\Throwable $e) {
return general_error_handler($e, $this);
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index ad449e3c74..5c504b2437 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -276,6 +276,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null
[],
fn (Message $message) => $message
->to($email)
+ ->replyTo($email)
->cc($cc)
->subject($mail->subject)
->html((string) $mail->render())