From 67ae06ccb0c6763cba6a52ebbdaf45159423b63b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Tue, 9 Dec 2025 18:36:34 +0100 Subject: [PATCH] Imports --- src/Controller/DefaultController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index 0beec46..2ba32b4 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -11,6 +11,7 @@ use App\Service\MutedPubkeysService; use App\Service\NostrClient; use App\Service\RedisCacheService; use App\Service\RedisViewStore; +use App\Service\Search\ArticleSearchInterface; use App\Util\CommonMark\Converter; use App\Util\ForumTopics; use App\Util\NostrKeyUtil; @@ -23,6 +24,7 @@ use Exception; use FOS\ElasticaBundle\Finder\FinderInterface; use Psr\Cache\CacheItemPoolInterface; use Psr\Cache\InvalidArgumentException; +use swentel\nostr\Key\Key; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; @@ -276,7 +278,8 @@ class DefaultController extends AbstractController public function magCategory($mag, $slug, EntityManagerInterface $entityManager, RedisCacheService $redisCacheService, FinderInterface $finder, - LoggerInterface $logger): Response + LoggerInterface $logger, + ArticleSearchInterface $articleSearch): Response { $magazine = $redisCacheService->getMagazineIndex($mag);