Refactor and use original image for banner
This commit is contained in:
parent
1bb266e7c7
commit
5d61c7c691
2 changed files with 4 additions and 4 deletions
|
@ -144,7 +144,7 @@ export default async (params: any, user: ILocalUser, app: IApp) => 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue