mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 07:23:07 +02:00
Delete get-user-summary.ts
This commit is contained in:
parent
619a1b9e53
commit
9603f3fa4f
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
||||||
import getAcct from './acct/render';
|
|
||||||
import getUserName from './get-user-name';
|
|
||||||
import { User } from '../models/entities/user';
|
|
||||||
import { Users } from '../models';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ユーザーを表す文字列を取得します。
|
|
||||||
* @param user ユーザー
|
|
||||||
*/
|
|
||||||
export default function(user: User): string {
|
|
||||||
let string = `${getUserName(user)} (@${getAcct(user)})\n` +
|
|
||||||
`${user.notesCount}投稿、${user.followingCount}フォロー、${user.followersCount}フォロワー\n`;
|
|
||||||
|
|
||||||
if (Users.isLocalUser(user)) {
|
|
||||||
string += `場所: ${user.location}、誕生日: ${user.birthday}\n`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return string + `「${user.description}」`;
|
|
||||||
}
|
|
Loading…
Reference in a new issue