mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Don't link out to other instances on user page
This commit is contained in:
parent
3e0956d95a
commit
62d0d1318d
2 changed files with 3 additions and 7 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue