egirlskey/src/common/user/get-acct.ts
2018-03-27 23:51:21 +09:00

3 lines
106 B
TypeScript

export default user => {
return user.host === null ? user.username : `${user.username}@${user.host}`;
};