1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-24 19:48:26 +09:00
misskey/src/misc/acct/render.ts

9 lines
174 B
TypeScript
Raw Normal View History

2018-07-25 00:51:30 +09:00
type UserLike = {
host: string;
username: string;
};
2018-06-18 09:54:53 +09:00
2018-07-25 00:51:30 +09:00
export default (user: UserLike) => {
2018-03-27 16:51:12 +09:00
return user.host === null ? user.username : `${user.username}@${user.host}`;
};