Skip to content

Commit

Permalink
use display_name to avoid name rendering as None
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkatz committed Apr 14, 2024
1 parent 74e2103 commit 98724df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bookwyrm/views/rss_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def link(self, obj):

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"""
Expand All @@ -234,5 +234,5 @@ 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.
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")

0 comments on commit 98724df

Please sign in to comment.