From f53fc9746ee9b79f3461147df364b36dfc7ca486 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Fri, 18 Apr 2025 20:47:23 +0200 Subject: [PATCH] Update avatar URL logic for console entries Replaced the hardcoded console image path with a specific UUID. This ensures a consistent format when constructing avatar URLs and improves maintainability. --- frontend/src/app/bans/history/history.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts index 184246a..8dcbee5 100644 --- a/frontend/src/app/bans/history/history.component.ts +++ b/frontend/src/app/bans/history/history.component.ts @@ -119,7 +119,7 @@ export class HistoryComponent implements OnInit, OnChanges { public getAvatarUrl(entry: string): string { let uuid = entry.replace('-', ''); if (uuid === 'C') { - return '/public/img/random/console.png'; + uuid = "f78a4d8dd51b4b3998a3230f2de0c670" } return `https://crafatar.com/avatars/${uuid}?size=25&overlay`; }