diff --git a/templates/identity/view.html b/templates/identity/view.html index 805b45f..297aaac 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -68,10 +68,10 @@
{{ post_count }} posts - {% if identity.local and identity.config_identity.visible_follows %} - {{ following_count }} following - {{ followers_count }} follower{{ followers_count|pluralize }} - {% endif %} + {% if identity.local and identity.config_identity.visible_follows %} + {{ following_count }} following + {{ followers_count }} follower{{ followers_count|pluralize }} + {% endif %}
{% if not identity.local %} diff --git a/tests/users/views/settings/test_privacy.py b/tests/users/views/settings/test_privacy.py index 680a61f..a40c881 100644 --- a/tests/users/views/settings/test_privacy.py +++ b/tests/users/views/settings/test_privacy.py @@ -23,7 +23,7 @@ def test_visible_follows_disabled(client, identity): """ Config.set_identity(identity, "visible_follows", True) response = client.get(identity.urls.view) - assertContains(response, 'follower', status_code=200) + assertContains(response, "follower", status_code=200) Config.set_identity(identity, "visible_follows", False) response = client.get(identity.urls.view) - assertNotContains(response, 'follower', status_code=200) + assertNotContains(response, "follower", status_code=200)