Browse Source

Refactor comments

imwald
Nuša Pukšič 3 months ago
parent
commit
64289995a6
  1. 2
      src/Twig/Components/Organisms/Comments.php

2
src/Twig/Components/Organisms/Comments.php

@ -63,7 +63,7 @@ final class Comments
$data = json_decode($payload); $data = json_decode($payload);
// If your handler doesn’t compute zaps/links yet, reuse your helpers here: // If your handler doesn’t compute zaps/links yet, reuse your helpers here:
$this->list = (array)$data->comments; $this->list = $data->comments;
$this->authorsMetadata = (array)$data->profiles ?? []; $this->authorsMetadata = (array)$data->profiles ?? [];
$this->parseZaps(); // your existing method – fills $zapAmounts & $zappers $this->parseZaps(); // your existing method – fills $zapAmounts & $zappers

Loading…
Cancel
Save