Browse Source

Author pages

imwald
Nuša Pukšič 4 months ago
parent
commit
c070f95006
  1. 1
      src/Service/NostrClient.php
  2. 2
      templates/pages/author.html.twig

1
src/Service/NostrClient.php

@ -512,6 +512,7 @@ class NostrClient @@ -512,6 +512,7 @@ class NostrClient
$article = $this->articleFactory->createFromLongFormContentEvent($event);
// Save each article to the database
$this->saveEachArticleToTheDatabase($article);
return $article; // Return the article so it gets added to the results array
});
}

2
templates/pages/author.html.twig

@ -63,7 +63,9 @@ @@ -63,7 +63,9 @@
{# {% endfor %}#}
{# {% endif %}#}
<div class="w-container">
<twig:Organisms:CardList :list="articles" class="article-list"></twig:Organisms:CardList>
</div>
{% endblock %}
{% block aside %}

Loading…
Cancel
Save