Merge pull request #1331 from bookwyrm-social/list-fix

Fixes error for logged out user viewing lists
This commit is contained in:
Mouse Reeve 2021-08-24 15:51:55 -06:00 committed by GitHub
commit 691f9c01c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
<h4 class="card-header-title">
<a href="{{ list.local_path }}">{{ list.name }}</a> <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span>
</h4>
{% if request.user|saved:list %}
{% if request.user.is_authenticated and request.user|saved:list %}
<div class="card-header-icon">
{% trans "Saved" as text %}
<span class="icon icon-bookmark has-text-grey" title="{{ text }}">