From 4d64fd665e9adc88266b963747180e28712455b5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Apr 2019 23:40:55 +0900 Subject: [PATCH] Update update.ts --- src/server/api/endpoints/i/update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index f3e5d4102..54e7f33bd 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -177,7 +177,7 @@ export default define(meta, async (ps, user, app) => { if (avatar == null || avatar.userId !== user.id) throw new ApiError(meta.errors.noSuchAvatar); if (!avatar.type.startsWith('image/')) throw new ApiError(meta.errors.avatarNotAnImage); - updates.avatarUrl = avatar.thumbnailUrl; + updates.avatarUrl = DriveFiles.getPublicUrl(avatar, true); if (avatar.properties.avgColor) { updates.avatarColor = avatar.properties.avgColor; @@ -190,7 +190,7 @@ export default define(meta, async (ps, user, app) => { if (banner == null || banner.userId !== user.id) throw new ApiError(meta.errors.noSuchBanner); if (!banner.type.startsWith('image/')) throw new ApiError(meta.errors.bannerNotAnImage); - updates.bannerUrl = banner.webpublicUrl; + updates.bannerUrl = DriveFiles.getPublicUrl(banner, false); if (banner.properties.avgColor) { updates.bannerColor = banner.properties.avgColor;