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/models/entities | |
| 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/models/entities')
| -rw-r--r-- | src/models/entities/drive-file.ts | 6 | ||||
| -rw-r--r-- | src/models/entities/user.ts | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/models/entities/drive-file.ts b/src/models/entities/drive-file.ts index 067dc1181c..c02b9f3636 100644 --- a/src/models/entities/drive-file.ts +++ b/src/models/entities/drive-file.ts @@ -67,6 +67,12 @@ export class DriveFile { }) public comment: string | null; + @Column('varchar', { + length: 128, nullable: true, + comment: 'The BlurHash string.' + }) + public blurhash: string | null; + @Column('jsonb', { default: {}, comment: 'The any properties of the DriveFile. For example, it includes image width/height.' diff --git a/src/models/entities/user.ts b/src/models/entities/user.ts index d3086f43f2..fee5906a3d 100644 --- a/src/models/entities/user.ts +++ b/src/models/entities/user.ts @@ -106,14 +106,14 @@ export class User { public bannerUrl: string | null; @Column('varchar', { - length: 32, nullable: true, + length: 128, nullable: true, }) - public avatarColor: string | null; + public avatarBlurhash: string | null; @Column('varchar', { - length: 32, nullable: true, + length: 128, nullable: true, }) - public bannerColor: string | null; + public bannerBlurhash: string | null; @Column('boolean', { default: false, |