mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-20 09:18:19 +00:00
improve shelf rss description
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
This commit is contained in:
parent
6976cb4876
commit
cd29b44807
|
@ -232,7 +232,6 @@ class RssShelfFeed(Feed):
|
|||
def description(self, obj):
|
||||
"""description of the shelf including the shelf name and user."""
|
||||
# if there's a description, lets add it. Not everyone puts a description in.
|
||||
desc = ""
|
||||
if obj.description:
|
||||
desc = f" {obj.description}"
|
||||
return f"Books added to the '{obj.name}' shelf for {obj.user.name}.{desc}"
|
||||
if desc := obj.description:
|
||||
return _(f"{obj.user.name}’s {obj.name} shelf: {desc}"
|
||||
return _(f"Books added to {obj.user.name}’s {obj.name} shelf"
|
||||
|
|
Loading…
Reference in a new issue