diff --git a/src/app/p/[secret]/log/page.tsx b/src/app/p/[secret]/log/page.tsx index 0404eff..7c36c78 100644 --- a/src/app/p/[secret]/log/page.tsx +++ b/src/app/p/[secret]/log/page.tsx @@ -50,7 +50,8 @@ const CATEGORIES = Object.keys(AUDIT_CATEGORY_LABEL) as AuditCategory[]; function EntryRow({ entry }: { entry: Entry }) { const [isOpen, setIsOpen] = useState(false); - const view = formatAuditEntry(entry); + const isSelf = entry.targetType === "USER" && entry.targetId === entry.moderatorId; + const view = formatAuditEntry({ ...entry, targetLabel: isSelf ? "sich selbst" : entry.targetLabel }); const Icon = entry.isAutomatic ? Bot : CATEGORY_ICON[view.category]; const removal = isRemoval(entry.action); const actor = entry.isAutomatic ? "Automatik" : (entry.moderatorName ?? "Unbekannt");