diff options
Diffstat (limited to 'server/controllers/api/users/me.ts')
-rw-r--r-- | server/controllers/api/users/me.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/controllers/api/users/me.ts b/server/controllers/api/users/me.ts index 4753308e8..26811136e 100644 --- a/server/controllers/api/users/me.ts +++ b/server/controllers/api/users/me.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import 'multer' | 1 | import 'multer' |
2 | import express from 'express' | 2 | import express from 'express' |
3 | import { auditLoggerFactory, getAuditIdFromRes, UserAuditView } from '@server/helpers/audit-logger' | 3 | import { auditLoggerFactory, getAuditIdFromRes, UserAuditView } from '@server/helpers/audit-logger' |
4 | import { getBiggestActorImage } from '@server/lib/actor-image' | ||
5 | import { Hooks } from '@server/lib/plugins/hooks' | 4 | import { Hooks } from '@server/lib/plugins/hooks' |
6 | import { pick } from '@shared/core-utils' | 5 | import { pick } from '@shared/core-utils' |
7 | import { ActorImageType, HttpStatusCode, UserUpdateMe, UserVideoQuota, UserVideoRate as FormattedUserVideoRate } from '@shared/models' | 6 | import { ActorImageType, HttpStatusCode, UserUpdateMe, UserVideoQuota, UserVideoRate as FormattedUserVideoRate } from '@shared/models' |
@@ -264,8 +263,6 @@ async function updateMyAvatar (req: express.Request, res: express.Response) { | |||
264 | ) | 263 | ) |
265 | 264 | ||
266 | return res.json({ | 265 | return res.json({ |
267 | // TODO: remove, deprecated in 4.2 | ||
268 | avatar: getBiggestActorImage(avatars).toFormattedJSON(), | ||
269 | avatars: avatars.map(avatar => avatar.toFormattedJSON()) | 266 | avatars: avatars.map(avatar => avatar.toFormattedJSON()) |
270 | }) | 267 | }) |
271 | } | 268 | } |