mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
Merge pull request 'allow admins to access deleted user profiles' (#370) from h3ndrik/pyfedi:deleted_user into main
Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/370
This commit is contained in:
commit
63d8528390
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