Compare commits

..

2 commits

Author SHA1 Message Date
803abfaf97 moved the *.py files to pelican/plugins/activitypub
we want them to install in the pelican package in other projects
2024-10-15 09:39:14 +02:00
21207918bb another bugfix, as article.tags is no longer valid 2024-10-15 09:39:14 +02:00

View file

@ -106,7 +106,7 @@ def ap_article(generator: pelican.ArticlesGenerator, writer: pelican.writers.Wri
path = os.path.join(writer.output_path, 'activitypub/tags', t.slug)
articles = []
for article in generator.articles:
if t.name not in article.metadata['tags']:
if t.name not in article.metadata.get('tags', []):
continue
articles.append(
os.path.join(generator.settings['SITEURL'], 'activitypub/posts', article.slug)