forked from mirror/pixelfed
Update CollectionController, limit max title and description length
This commit is contained in:
parent
eac3220ffd
commit
6e76cf4b68
1 changed files with 4 additions and 4 deletions
|
@ -65,8 +65,8 @@ class CollectionController extends Controller
|
||||||
{
|
{
|
||||||
abort_if(!Auth::check(), 403);
|
abort_if(!Auth::check(), 403);
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'title' => 'nullable',
|
'title' => 'nullable|max:50',
|
||||||
'description' => 'nullable',
|
'description' => 'nullable|max:500',
|
||||||
'visibility' => 'nullable|string|in:public,private,draft'
|
'visibility' => 'nullable|string|in:public,private,draft'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -84,8 +84,8 @@ class CollectionController extends Controller
|
||||||
{
|
{
|
||||||
abort_if(!Auth::check(), 403);
|
abort_if(!Auth::check(), 403);
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'title' => 'nullable',
|
'title' => 'nullable|max:50',
|
||||||
'description' => 'nullable',
|
'description' => 'nullable|max:500',
|
||||||
'visibility' => 'required|alpha|in:public,private,draft'
|
'visibility' => 'required|alpha|in:public,private,draft'
|
||||||
]);
|
]);
|
||||||
$profile = Auth::user()->profile;
|
$profile = Auth::user()->profile;
|
||||||
|
|
Loading…
Reference in a new issue