misskey/src/misc/acct/render.ts

6 lines
159 B
TypeScript
Raw Normal View History

2018-07-07 12:19:00 +02:00
import { IUser } from '../../models/user';
2018-06-18 02:54:53 +02:00
export default (user: IUser) => {
2018-03-27 09:51:12 +02:00
return user.host === null ? user.username : `${user.username}@${user.host}`;
};