mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-11 04:52:52 +00:00
use display_name to avoid name rendering as None
This commit is contained in:
parent
74e2103e3a
commit
98724dfa47
|
@ -216,7 +216,7 @@ class RssShelfFeed(Feed):
|
|||
|
||||
def title(self, obj):
|
||||
"""title of the rss feed entry"""
|
||||
return _(f"{obj.user.name}’s {obj.name} shelf")
|
||||
return _(f"{obj.user.display_name}’s {obj.name} shelf")
|
||||
|
||||
def items(self, obj):
|
||||
"""the user's activity feed"""
|
||||
|
@ -234,5 +234,5 @@ class RssShelfFeed(Feed):
|
|||
"""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 desc := obj.description:
|
||||
return _(f"{obj.user.name}’s {obj.name} shelf: {desc}")
|
||||
return _(f"{obj.user.display_name}’s {obj.name} shelf: {desc}")
|
||||
return _(f"Books added to {obj.user.name}’s {obj.name} shelf")
|
||||
|
|
Loading…
Reference in a new issue