hide mastodon info if locked and not followed/ing
This commit is contained in:
parent
7d9c58edf0
commit
43a7bf5174
2 changed files with 11 additions and 9 deletions
|
@ -34,7 +34,7 @@ def home(request):
|
||||||
|
|
||||||
|
|
||||||
def ap_redirect(request, uri):
|
def ap_redirect(request, uri):
|
||||||
return redirect(request.get_full_path().replace("~neodb~", "/"))
|
return redirect(request.get_full_path().replace("/~neodb~/", "/"))
|
||||||
|
|
||||||
|
|
||||||
def nodeinfo2(request):
|
def nodeinfo2(request):
|
||||||
|
|
|
@ -48,14 +48,16 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if identity.user.mastodon_account %}
|
{% if identity.user.mastodon_account %}
|
||||||
<span>
|
{% if not identity.locked or request.user.is_superuser or relationship.requested or relationship.status %}
|
||||||
<a href="{{ identity.user.mastodon_account.url }}"
|
<span>
|
||||||
target="_blank"
|
<a href="{{ identity.user.mastodon_account.url }}"
|
||||||
rel="noopener"
|
target="_blank"
|
||||||
title="@{{ identity.user.mastodon_acct }}">
|
rel="noopener"
|
||||||
<i class="fa-brands fa-mastodon"></i>
|
title="@{{ identity.user.mastodon_acct }}">
|
||||||
</a>
|
<i class="fa-brands fa-mastodon"></i>
|
||||||
</span>
|
</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if relationship.requested %}
|
{% if relationship.requested %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue