|
@@ -53,6 +53,14 @@ class FeedService
|
|
->setDateModified($item->getDateCreated())
|
|
->setDateModified($item->getDateCreated())
|
|
->addAuthor(['name' => (string) $article->getAuthor()])
|
|
->addAuthor(['name' => (string) $article->getAuthor()])
|
|
;
|
|
;
|
|
|
|
+ $tags = $article->getTags();
|
|
|
|
+ foreach($tags as $tag) {
|
|
|
|
+ $item->addCategory([
|
|
|
|
+ 'term' => (string) $tag->getName(),
|
|
|
|
+ 'scheme' => $this->router->generate('app_search', ['tag' => $tag->getName()], RouterInterface::ABSOLUTE_URL)
|
|
|
|
+ ]);
|
|
|
|
+ }
|
|
|
|
+
|
|
# Fix pour supprimer le allowfullscreen récupéré par l'extension embed pour youtube
|
|
# Fix pour supprimer le allowfullscreen récupéré par l'extension embed pour youtube
|
|
$content = $this->markdownParser->convertToHtml($article->getContent());
|
|
$content = $this->markdownParser->convertToHtml($article->getContent());
|
|
$content = str_replace('allowfullscreen', 'allowfullscreen="true"', $content);
|
|
$content = str_replace('allowfullscreen', 'allowfullscreen="true"', $content);
|