浏览代码

Merge branch 'master' into proposition-nouveau-layout

Sangfroid 1 月之前
父节点
当前提交
19ab24f168
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]);
     }