mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update ContactController
This commit is contained in:
parent
a7dbae6bc4
commit
5d3317d255
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class ContactController extends Controller
|
||||||
->whereDate('created_at', '>', now()->subDays($max))
|
->whereDate('created_at', '>', now()->subDays($max))
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
if($contact >= 2) {
|
if($contact >= $max) {
|
||||||
return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.');
|
return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue