entityManager->getRepository(Article::class)->findAll(); $current = array_slice($list, 0,10); $npubs = array_map(function($obj) { return $obj->getPubkey(); }, $list); $this->nostrClient->getMetadata(array_unique($npubs)); return $this->render('home.html.twig', [ 'list' => $current ]); } }