misskey/src/misc/acct/render.ts

6 lines
141 B
TypeScript
Raw Normal View History

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