{% extends "allianceauth/base-bs5.html" %} {% load i18n %} {% block page_title %} {% translate "Discord Audit Finding" %} #{{ finding.pk }} {% endblock %} {% block header_nav_brand %} {% translate "Discord Audit" %} {% endblock %} {% block content %} {% include "aa_discord_audit/_subnav.html" with active="runs" %}

{% translate "Finding" %} #{{ finding.pk }}

{% translate "Recorded outcome" %}

{% translate "Frozen at the time of the audit run; classify() ran against the live Discord member and the operator-config tables in effect when the run started." %}

{% translate "Member ID" %} {{ finding.member_id }}
{% translate "Username" %} {{ finding.member_username }}
{% translate "Category" %} {{ category_badge.label }}
{% translate "State" %} {{ state_badge.label }}
{% translate "Action" %} {{ action_badge.label }}
{% translate "AA user" %} {{ finding.aa_user|default:"—" }}
{% translate "Kicked" %} {% include "aa_discord_audit/_flag_badge.html" with badge=kicked_badge only %}
{% translate "Skip reason" %} {{ finding.skipped_reason|default:"—" }}
{% translate "Error" %} {% if error_redacted %}
{{ error_redacted }}
{% else %} — {% endif %}
{% translate "Roles removed" %} {% if finding.role_names_removed %}
    {% for name in finding.role_names_removed %}
  • {{ name }}
  • {% endfor %}
{% translate "Role IDs:" %} {{ finding.role_ids_removed|join:", " }} {% else %} — {% endif %}

{% translate "Current operator-config inputs" %}

{% translate "Live state of the tables classify() consults. Diverges from the recorded category when the operator changed config between the run and now — useful when investigating 'why was this flagged?' after a follow-up edit." %}

{% blocktranslate with ts=as_of %}Current operator-config inputs as of {{ ts }}{% endblocktranslate %}

{% translate "In BotAccountUid" %} {% if in_bot_uids %} {% translate "yes" %} {% else %} {% translate "no" %} {% endif %}
{% translate "ProtectedDiscordMember" %} {% if is_protected %} {% translate "protected" %} {% else %} {% translate "not protected" %} {% endif %}
{% translate "Has DiscordUser link" %} {% if has_discord_user %} {% translate "yes" %} {% if discord_user_user_id %} {% translate "AA user pk:" %} {{ discord_user_user_id }} {% endif %} {% else %} {% translate "no" %} {% endif %}
{% translate "Has DiscordIdentity" %} {% if has_identity %} {% translate "yes" %} {% if identity.last_seen_in_guild_at %} {% translate "last seen:" %} {{ identity.last_seen_in_guild_at|date:"Y-m-d H:i:s" }} {% endif %} {% else %} {% translate "no" %} {% endif %}
{% translate "Recorded run policy snapshot" %}
{{ policy_json }}
{% endblock %}