{% 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." %}

{% if finding.error_message %} {% endif %}
{% translate "Member ID" %}{{ finding.member_id }}
{% translate "Username" %}{{ finding.member_username }}
{% translate "Category" %}{{ finding.category }}
{% translate "State" %}{{ finding.state }}
{% translate "Action" %}{{ finding.action }}
{% translate "AA user" %}{{ finding.aa_user|default:"—" }}
{% translate "Kicked" %}{{ finding.kicked|yesno:_("yes,no") }}
{% translate "Skip reason" %}{{ finding.skipped_reason|default:"—" }}
{% translate "Error" %}
{{ finding.error_message }}
{% 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." %}

{% 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" %}
{{ run.policy_snapshot|stringformat:"s" }}
{% endblock %}