diff --git a/bookwyrm/templates/preferences/blocks.html b/bookwyrm/templates/preferences/blocks.html index 72d4abd4..24866fa3 100644 --- a/bookwyrm/templates/preferences/blocks.html +++ b/bookwyrm/templates/preferences/blocks.html @@ -18,7 +18,7 @@ {% include 'snippets/avatar.html' with user=user %} {{ user.display_name }}
- {% include 'snippets/block_button.html' with user=user %} + {% include 'snippets/block_button.html' with user=user blocks=True %}
{% endfor %} diff --git a/bookwyrm/templates/snippets/block_button.html b/bookwyrm/templates/snippets/block_button.html index 7e9fcaea..3cad78f6 100644 --- a/bookwyrm/templates/snippets/block_button.html +++ b/bookwyrm/templates/snippets/block_button.html @@ -1,5 +1,5 @@ {% load i18n %} -{% if not user in request.user.blocks.all %} +{% if not blocks %}