mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
allow admins to access deleted user profiles
This commit is contained in:
parent
82be9f9475
commit
87b1f40d2a
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
{% macro render_username(user, add_domain=True) -%}
|
||||
<span class="render_username">
|
||||
{% if user.deleted -%}
|
||||
[deleted]
|
||||
{% if current_user.is_authenticated and current_user.is_admin() -%}
|
||||
<a href="/u/{{ user.link() }}" title="{{ user.ap_id if user.ap_id != none else user.user_name }}" aria-label="{{ _('Author') }}">[deleted]</a>
|
||||
{% else -%}
|
||||
[deleted]
|
||||
{% endif -%}
|
||||
{% else -%}
|
||||
<a href="/u/{{ user.link() }}" title="{{ user.ap_id if user.ap_id != none else user.user_name }}" aria-label="{{ _('Author') }}">
|
||||
{% if user.avatar_id and not low_bandwidth and not collapsed -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue