Update ban history formatting to include clearer unban details

Modified the history format service to display 'Unbanned by [user]' instead of just the user's name. This provides more explicit context for removed punishments in the UI.
This commit is contained in:
Teriuihi 2025-04-19 22:13:19 +02:00
parent d54a7e51ee
commit 07c77f5485

View File

@ -32,7 +32,7 @@ export class HistoryFormatService {
public getExpiredTime(entry: PunishmentHistory): string {
let suffix: string = '';
if (entry.removedBy !== null && entry.removedBy !== undefined) {
suffix = '(' + entry.removedBy + ')';
suffix = '(Unbanned by ' + entry.removedBy + ')';
}
if (entry.expiryTime <= 0) {
return "Permanent " + this.getType(entry) + " " + suffix;