use thumbhash instead of blurhash

This commit is contained in:
grngxd 2025-08-01 10:45:56 +01:00
parent 264739fd76
commit 997774c5de
4 changed files with 38 additions and 36 deletions

View file

@ -53,8 +53,10 @@ type File struct {
Owner string `gorm:"not null;index"`
Size int64 `gorm:"not null;type:bigint"`
CreatedAt time.Time `gorm:"autoCreateTime"`
Mime string ` gorm:"type:text"`
Blurhash string `gorm:"type:text"`
Mime string `gorm:"type:text"`
Hash string `gorm:"type:text"`
Width int
Height int
}
func (f *File) BeforeCreate(tx *gorm.DB) (err error) {