Files
misskey/src/acct/render.ts
syuilo e66d7babc5 yatta
2018-06-18 14:28:43 +09:00

6 lines
156 B
TypeScript

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