mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 04:07:15 +09:00
6 lines
164 B
TypeScript
6 lines
164 B
TypeScript
export function acct(user: { username: string; host?: string | null; }): string {
|
|
return user.host
|
|
? `@${user.username}@${user.host}`
|
|
: `@${user.username}`;
|
|
}
|