feat: generate a BlurHash when uploading a new image
This commit is contained in:
parent
362706b38d
commit
f83b09af59
5 changed files with 47 additions and 17 deletions
|
|
@ -144,7 +144,7 @@ func (ld *ListDuplicate) Create(s *xorm.Session, doer web.Auth) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
if err := SetListBackground(s, ld.List.ID, file); err != nil {
|
||||
if err := SetListBackground(s, ld.List.ID, file, ld.List.BackgroundBlurHash); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue