From f548c4804e13d6ed883bc9111ad55feca4d80e84 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 31 Oct 2018 13:28:05 +0900 Subject: [PATCH] Clean up --- src/models/user.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/models/user.ts b/src/models/user.ts index 57973d6ca..ce877fe27 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -261,16 +261,6 @@ export const pack = ( if (_user.avatarUrl == null) { _user.avatarUrl = `${config.drive_url}/default-avatar.jpg`; - - // 互換性のため - if (_user.avatarId) { - _user.avatarUrl = `${config.drive_url}/${_user.avatarId}`; - } - } - - // 互換性のため - if (_user.bannerId && _user.bannerUrl == null) { - _user.bannerUrl = `${config.drive_url}/${_user.bannerId}`; } if (!meId || !meId.equals(_user.id) || !opts.detail) {