From be1cbfd8ef15ddd6031b76918e4f0bf565e8ccb3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 10 Apr 2019 14:58:45 +0900 Subject: [PATCH] Delete get-user-summary.ts --- src/misc/get-user-summary.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/misc/get-user-summary.ts diff --git a/src/misc/get-user-summary.ts b/src/misc/get-user-summary.ts deleted file mode 100644 index 9cb06f43c..000000000 --- a/src/misc/get-user-summary.ts +++ /dev/null @@ -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}」`; -}