diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-19 00:24:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-19 00:24:07 +0900 |
| commit | 3f71b1463719bee476d39b7ceca5a2eea4b5cb67 (patch) | |
| tree | 70003fc0a220785526289fd5b46d8c708a59c21d /src/services/drive | |
| parent | fix(client): プラグインの動作を修正 (diff) | |
| download | sharkey-3f71b1463719bee476d39b7ceca5a2eea4b5cb67.tar.gz sharkey-3f71b1463719bee476d39b7ceca5a2eea4b5cb67.tar.bz2 sharkey-3f71b1463719bee476d39b7ceca5a2eea4b5cb67.zip | |
feat: Blurhash integration
Resolve #6559
Diffstat (limited to 'src/services/drive')
| -rw-r--r-- | src/services/drive/add-file.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index cf0951ebad..969dc04069 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -327,7 +327,6 @@ export default async function( const properties: { width?: number; height?: number; - avgColor?: string; } = {}; if (info.width) { @@ -335,10 +334,6 @@ export default async function( properties['height'] = info.height; } - if (info.avgColor) { - properties['avgColor'] = `rgb(${info.avgColor.join(',')})`; - } - const profile = user ? await UserProfiles.findOne(user.id) : null; const folder = await fetchFolder(); @@ -351,6 +346,7 @@ export default async function( file.folderId = folder !== null ? folder.id : null; file.comment = comment; file.properties = properties; + file.blurhash = info.blurhash || null; file.isLink = isLink; file.isSensitive = user ? Users.isLocalUser(user) && profile!.alwaysMarkNsfw ? true : |