From 21732304ee18cfb1172e056fd39d0daa2b4216d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sun, 26 Oct 2025 20:21:43 +0100 Subject: [PATCH] Refactor comments, some more --- src/Twig/Components/Organisms/Comments.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Twig/Components/Organisms/Comments.php b/src/Twig/Components/Organisms/Comments.php index 75c6379..fbb887b 100644 --- a/src/Twig/Components/Organisms/Comments.php +++ b/src/Twig/Components/Organisms/Comments.php @@ -58,7 +58,7 @@ final class Comments } #[LiveAction] - public function loadComments(#[LiveArg] string $payload): array + public function loadComments(#[LiveArg] string $payload): void { $data = json_decode($payload,true); @@ -69,14 +69,7 @@ final class Comments $this->parseZaps(); // your existing method – fills $zapAmounts & $zappers $this->parseNostrLinks(); // your existing method – fills $commentLinks & $processedContent - return [ - 'list' => $this->list, - 'authorsMetadata' => $this->authorsMetadata, - 'zappers' => $this->zappers, - 'zapAmounts' => $this->zapAmounts, - 'commentLinks' => $this->commentLinks, - 'loading' => false, - ]; + $this->loading = false; } /**