1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-30 06:28:31 +09:00
misskey/src/misc/get-user-name.ts
syuilo 5c497d7563 ✌️
2018-08-02 09:52:47 +09:00

6 lines
126 B
TypeScript

import { IUser } from '../models/user';
export default function(user: IUser): string {
return user.name || user.username;
}