update posts api

This commit is contained in:
Simon Vieille 2021-04-09 15:47:40 +02:00
parent 3532c7721a
commit 3750a56f98

View file

@ -194,7 +194,7 @@ class PostController extends PageController
'post' => $entity->getId(),
'slug' => $entity->getSlug(),
], UrlGeneratorInterface::ABSOLUTE_URL),
'content' => $parser->transformMarkdown($entity->getContent()),
'content' => $entity->getContent(),
'categories' => call_user_func(function () use ($entity) {
foreach ($entity->getCategories() as $category) {
if ($category->getIsActive()) {