1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-23 11:08:36 +09:00
misskey/src/misc/get-user-name.ts

6 lines
132 B
TypeScript

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