Skip to content

Commit 60071c4

Browse files
committed
show ban reason in audit logs
1 parent e191b16 commit 60071c4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/chat-api/services/ModerationService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ export interface UserAuditLog {
553553
actionById: string;
554554
createdAt: number;
555555
serverId?: string;
556+
reason?: string;
556557
data?: {
557558
serverName?: string;
558559
bannedUserId?: string;

src/components/moderation-pane/UsersAuditLogsPane.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ const AuditLogItem = (props: {
229229
{serverName()}
230230
</Text>
231231
</Show>
232+
<Show when={props.item.reason}>
233+
<Text size={14} opacity={0.6}>
234+
Reason: {props.item.reason}
235+
</Text>
236+
</Show>
232237
<Text size={14} opacity={0.6}>
233238
At {timestamp()}
234239
</Text>

0 commit comments

Comments
 (0)