mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-11 13:03:01 +00:00
Don't show a colon if there is no author_text
If there is no author for a book, render just the title of the book.
This commit is contained in:
parent
8dc412c4cb
commit
a0d15ccec0
|
@ -188,7 +188,10 @@ class RssShelfFeed(Feed):
|
|||
def item_title(self, item):
|
||||
"""render the item title"""
|
||||
authors = item.authors
|
||||
authors.display_name = f"{item.author_text}:"
|
||||
if item.author_text:
|
||||
authors.display_name = f"{item.author_text}:"
|
||||
else:
|
||||
authors.description = ""
|
||||
template = get_template("rss/title.html")
|
||||
return template.render({"user": authors, "item_title": item.title}).strip()
|
||||
|
||||
|
|
Loading…
Reference in a new issue