mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-13 02:39:23 +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):
|
def description(self, obj):
|
||||||
"""description of the shelf including the shelf name and user."""
|
"""description of the shelf including the shelf name and user."""
|
||||||
# if there's a description, lets add it. Not everyone puts a description in.
|
# if there's a description, lets add it. Not everyone puts a description in.
|
||||||
desc = ""
|
if desc := obj.description:
|
||||||
if obj.description:
|
return _(f"{obj.user.name}’s {obj.name} shelf: {desc}"
|
||||||
desc = f" {obj.description}"
|
return _(f"Books added to {obj.user.name}’s {obj.name} shelf"
|
||||||
return f"Books added to the '{obj.name}' shelf for {obj.user.name}.{desc}"
|
|
||||||
|
|
Loading…
Reference in a new issue