1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-26 20:48:30 +09:00
misskey/src/acct/render.ts
2018-06-18 09:54:53 +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}`;
};