Use display_name instead of username

This commit is contained in:
Chad Nelson 2021-01-23 18:39:55 -05:00
parent 0fe2e7a356
commit ad2baf3be5
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{{ obj.user.username }}{% if obj.status_type == 'GeneratedNote' %}
{{ obj.user.display_name }}{% if obj.status_type == 'GeneratedNote' %}
{{ obj.content | safe }}
{% elif obj.status_type == 'Review' and not obj.name and not obj.content%}
rated

View file

@ -17,11 +17,11 @@ class RssFeed(Feed):
return obj.local_path
def title(self, obj):
return f"Status updates from {obj.username}"
return f"Status updates from {obj.display_name}"
def items(self, obj):
return get_activity_feed(obj, ['public', 'unlisted', 'followers'])
return get_activity_feed(obj, ['public', 'unlisted'])
def item_link(self, item):