From 5d61c7c6918914c7a0a8185be3f84407d0dbeac1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 1 Nov 2018 09:30:51 +0900 Subject: [PATCH] Refactor and use original image for banner --- src/remote/activitypub/models/person.ts | 6 +++--- src/server/api/endpoints/i/update.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 7842e8788..d78bc15c9 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -210,8 +210,8 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise new Promise(a if (banner == null) return rej('banner not found'); if (!banner.contentType.startsWith('image/')) return rej('banner not an image'); - updates.bannerUrl = getDriveFileUrl(banner, true); + updates.bannerUrl = getDriveFileUrl(banner, false); if (banner.metadata.properties.avgColor) { updates.bannerColor = banner.metadata.properties.avgColor;