From 62d0d1318d7228a4596c623f8c5804a0b47db6f9 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 9 Mar 2020 17:48:48 -0700 Subject: [PATCH] Don't link out to other instances on user page --- fedireads/templates/snippets/username.html | 2 +- fedireads/templates/user.html | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fedireads/templates/snippets/username.html b/fedireads/templates/snippets/username.html index 16505c86a..ea4381e57 100644 --- a/fedireads/templates/snippets/username.html +++ b/fedireads/templates/snippets/username.html @@ -1,2 +1,2 @@ {% load fr_display %} -{% if user.name %}{{ user.name }}{% else %}{{ user | username }}{% endif %} +{% if user.name %}{{ user.name }}{% else %}{{ user | username }}{% endif %} {% if show_full and user.name or user.localname %} ({{ user.username }}){% endif %} diff --git a/fedireads/templates/user.html b/fedireads/templates/user.html index 0e5ba6a4a..8feb12abc 100644 --- a/fedireads/templates/user.html +++ b/fedireads/templates/user.html @@ -24,10 +24,8 @@

Followers

{% for follower in user.followers.all %}
- {{ follower.username }} - {% if not request.user in follower.followers.all and request.user != follower %} + {% include 'snippets/username.html' with user=follower show_full=True %} {% include 'snippets/follow_button.html' with user=follower %} - {% endif %}
{% endfor %} @@ -36,10 +34,8 @@

Following

{% for following in user.following.all %}
- {{ following.username }} - {% if not request.user in following.followers.all and request.user != following %} + {% include 'snippets/username.html' with user=following show_full=True %} {% include 'snippets/follow_button.html' with user=following %} - {% endif %}
{% endfor %}