Don't link out to other instances on user page

This commit is contained in:
Mouse Reeve 2020-03-09 17:48:48 -07:00
parent 3e0956d95a
commit 62d0d1318d
2 changed files with 3 additions and 7 deletions

View file

@ -1,2 +1,2 @@
{% load fr_display %}
<a href="/user/{{ user | username }}" class="user">{% if user.name %}{{ user.name }}{% else %}{{ user | username }}{% endif %}</a>
<a href="/user/{{ user | username }}" class="user">{% if user.name %}{{ user.name }}{% else %}{{ user | username }}{% endif %}</a> {% if show_full and user.name or user.localname %} ({{ user.username }}){% endif %}

View file

@ -24,10 +24,8 @@
<h2>Followers</h2>
{% for follower in user.followers.all %}
<div>
<a href="{{ follower.actor }}">{{ follower.username }}</a>
{% 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 %}
</div>
{% endfor %}
</div>
@ -36,10 +34,8 @@
<h2>Following</h2>
{% for following in user.following.all %}
<div>
<a href="{{ following.actor }}">{{ following.username }}</a>
{% 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 %}
</div>
{% endfor %}
</div>