1
0
Fork 0
forked from mirror/pixelfed

Update CollectionController, limit max title and description length

This commit is contained in:
Daniel Supernault 2022-10-01 03:45:53 -06:00
parent eac3220ffd
commit 6e76cf4b68
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -65,8 +65,8 @@ class CollectionController extends Controller
{
abort_if(!Auth::check(), 403);
$this->validate($request, [
'title' => 'nullable',
'description' => 'nullable',
'title' => 'nullable|max:50',
'description' => 'nullable|max:500',
'visibility' => 'nullable|string|in:public,private,draft'
]);
@ -84,8 +84,8 @@ class CollectionController extends Controller
{
abort_if(!Auth::check(), 403);
$this->validate($request, [
'title' => 'nullable',
'description' => 'nullable',
'title' => 'nullable|max:50',
'description' => 'nullable|max:500',
'visibility' => 'required|alpha|in:public,private,draft'
]);
$profile = Auth::user()->profile;