mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update ContactPipeline
This commit is contained in:
parent
50371bf349
commit
1bb3e0344b
1 changed files with 2 additions and 2 deletions
|
@ -35,10 +35,10 @@ class ContactPipeline implements ShouldQueue
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$contact = $this->contact;
|
$contact = $this->contact;
|
||||||
if(config('instance.contact.enabled') == false || $this->read_at !== null) {
|
$email = config('instance.email');
|
||||||
|
if(config('instance.contact.enabled') == false || $contact->read_at !== null || filter_var($email, FILTER_VALIDATE_EMAIL) == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$email = config('instance.email');
|
|
||||||
Mail::to($email)->send(new ContactAdmin($contact));
|
Mail::to($email)->send(new ContactAdmin($contact));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue