Refactorng

This commit is contained in:
syuilo
2018-07-07 19:19:00 +09:00
parent 865fd25af1
commit aa4ef6745a
132 changed files with 180 additions and 212 deletions

5
src/misc/acct/render.ts Normal file
View File

@@ -0,0 +1,5 @@
import { IUser } from '../../models/user';
export default (user: IUser) => {
return user.host === null ? user.username : `${user.username}@${user.host}`;
};