1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 07:16:14 +02:00
This commit is contained in:
syuilo
2017-10-07 17:20:47 +09:00
parent 68ea377759
commit d1f5d62251
2 changed files with 22 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
import { IUser } from '../api/models/user';
/**
* ユーザーを表す文字列を取得します。
* @param user ユーザー
*/
export default function(user: IUser): string {
return `${user.name} (@${user.username})\n` +
`${user.posts_count}投稿、${user.following_count}フォロー、${user.followers_count}フォロワー\n` +
`場所: ${user.profile.location}、誕生日: ${user.profile.birthday}\n` +
`${user.description}`;
}