2023-01-28 12:40:31 +09:00

6 lines
164 B
TypeScript

export function acct(user: { username: string; host?: string | null; }): string {
return user.host
? `@${user.username}@${user.host}`
: `@${user.username}`;
}