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.
This commit is contained in:
Teriuihi 2025-04-18 20:47:23 +02:00
parent ecee377f01
commit f53fc9746e

View File

@ -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`;
}