yumechi-no-kuni/src/acct/render.ts
2018-06-18 09:54:53 +09:00

5 lines
156 B
TypeScript

import { IUser } from "../models/user";
export default (user: IUser) => {
return user.host === null ? user.username : `${user.username}@${user.host}`;
};