From 6c3bbf7d5da20fe616b41528b90d54043b55ab2a 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:33:04 +0100 Subject: [PATCH] Refactor comments, typed --- src/Twig/Components/Organisms/Comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Twig/Components/Organisms/Comments.php b/src/Twig/Components/Organisms/Comments.php index 88446dd..6487990 100644 --- a/src/Twig/Components/Organisms/Comments.php +++ b/src/Twig/Components/Organisms/Comments.php @@ -63,8 +63,8 @@ final class Comments $data = json_decode($payload); // If your handler doesn’t compute zaps/links yet, reuse your helpers here: - $this->list = $data->comments; - $this->authorsMetadata = $data->profiles ?? []; + $this->list = (array)$data->comments; + $this->authorsMetadata = (array)$data->profiles ?? []; $this->parseZaps(); // your existing method – fills $zapAmounts & $zappers $this->parseNostrLinks(); // your existing method – fills $commentLinks & $processedContent