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
$article = $this->articleFactory->createFromLongFormContentEvent($event); $article = $this->articleFactory->createFromLongFormContentEvent($event);
// Save each article to the database // Save each article to the database
$this->saveEachArticleToTheDatabase($article); $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 @@
{# {% endfor %}#} {# {% endfor %}#}
{# {% endif %}#} {# {% endif %}#}
<div class="w-container">
<twig:Organisms:CardList :list="articles" class="article-list"></twig:Organisms:CardList> <twig:Organisms:CardList :list="articles" class="article-list"></twig:Organisms:CardList>
</div>
{% endblock %} {% endblock %}
{% block aside %} {% block aside %}

Loading…
Cancel
Save