diff --git a/fedireads/templates/shelf.html b/fedireads/templates/shelf.html
index afb6d52c1..df8b8b9ca 100644
--- a/fedireads/templates/shelf.html
+++ b/fedireads/templates/shelf.html
@@ -3,7 +3,7 @@
-
{% include 'snippets/username.html' %} > {{ shelf.name }}
+ {% include 'snippets/username.html' with user=user %} > {{ shelf.name }}
{% include 'snippets/shelf.html' with shelf=shelf ratings=ratings %}
diff --git a/fedireads/views.py b/fedireads/views.py
index 76b9a1fe4..4aa128cf7 100644
--- a/fedireads/views.py
+++ b/fedireads/views.py
@@ -270,7 +270,11 @@ def shelf_page(request, username, shelf_identifier):
return HttpResponseNotFound()
shelf = models.Shelf.objects.get(user=user, identifier=shelf_identifier)
- return TemplateResponse(request, 'shelf.html', {'shelf': shelf})
+ data = {
+ 'shelf': shelf,
+ 'user': user,
+ }
+ return TemplateResponse(request, 'shelf.html', data)
@login_required