Skip to content

Commit

Permalink
support multiple authors in rss
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed May 17, 2024
1 parent 8dc0df5 commit 01609a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,8 @@ def format_author(author, published_at):
)
if isinstance(author, str):
authors_ = [{"name": author}]
elif isinstance(author, list):
authors_ = [{"name": a} for a in author]
elif isinstance(author, dict):
authors_ = [author]
else:
Expand Down

0 comments on commit 01609a8

Please sign in to comment.