mizzkey/src/misc/acct/render.ts

6 lines
141 B
TypeScript

import Acct from './type';
export default (user: Acct) => {
return user.host == null ? user.username : `${user.username}@${user.host}`;
};