1
0
forked from mirror/misskey
misskey/src/acct/render.ts
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}`;
};