yumechi-no-kuni/src/misc/acct/render.ts

6 lines
142 B
TypeScript
Raw Normal View History

import Acct from './type';
2018-06-17 19:54:53 -05:00
export default (user: Acct) => {
2018-03-27 02:51:12 -05:00
return user.host === null ? user.username : `${user.username}@${user.host}`;
};