|
@@ -17,7 +17,7 @@ class SlugController extends AbstractController
|
|
$data = json_decode($request->getContent(), true);
|
|
$data = json_decode($request->getContent(), true);
|
|
$title = $data['title'] ?? '';
|
|
$title = $data['title'] ?? '';
|
|
|
|
|
|
- $slug = $slugger->slug($title)->lower();
|
|
|
|
|
|
+ $slug = $slugger->slug($title)->lower()->truncate(100);
|
|
|
|
|
|
return new JsonResponse(['slug' => $slug]);
|
|
return new JsonResponse(['slug' => $slug]);
|
|
}
|
|
}
|