import { OWNER_DISPLAY_NAME } from "../config.ts"; import { ADMIN_USERNAME } from "../constants.ts"; /** Show OWNER_DISPLAY_NAME for the admin account, [Deleted user] for null, otherwise the raw username. */ export function displayName(username: string | null | undefined): string { if (!username) return "[Deleted user]"; return username === ADMIN_USERNAME ? OWNER_DISPLAY_NAME : username; }