1
0
forked from mirror/misskey
misskey/src/misc/get-user-name.ts

6 lines
126 B
TypeScript
Raw Normal View History

import { IUser } from '../models/user';
export default function(user: IUser): string {
2018-08-02 09:52:47 +09:00
return user.name || user.username;
}