Browse Source

Nom de l'auteur avec __toString

Sangfroid 1 month ago
parent
commit
2a499b6929
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Service/BlogFeedProvider.php

+ 1 - 1
src/Service/BlogFeedProvider.php

@@ -46,7 +46,7 @@ class BlogFeedProvider implements FeedProviderInterface
             $item
                 ->setContent($this->markdownParser->convertToHtml($article->getContent()))
                 ->setTitle($article->getTitle())
-                ->setAuthor((new Author())->setName($article->getAuthor()->getPseudo()))
+                ->setAuthor((new Author())->setName($article->getAuthor()))
                 ->setLastModified(\DateTime::createFromImmutable($article->getPublicationDate()))
                 ->setLink($this->router->generate('app_view', ['slug' => $article->getSlug()], RouterInterface::ABSOLUTE_URL))
             ;