Pārlūkot izejas kodu

Merge branch 'master' into proposition-nouveau-layout

Sangfroid 1 mēnesi atpakaļ
vecāks
revīzija
19ab24f168
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Controller/SlugController.php

+ 1 - 1
src/Controller/SlugController.php

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