fix: return BlurHash in unsplash search results

This commit is contained in:
kolaente 2021-12-12 22:34:18 +01:00 committed by Gitea
parent ba2bdff391
commit 6b51fae093

View file

@ -217,6 +217,7 @@ func (p *Provider) Search(s *xorm.Session, search string, page int64) (result []
result = append(result, &background.Image{ result = append(result, &background.Image{
ID: p.ID, ID: p.ID,
URL: getImageID(p.Urls.Raw), URL: getImageID(p.Urls.Raw),
BlurHash: p.BlurHash,
Info: &models.UnsplashPhoto{ Info: &models.UnsplashPhoto{
UnsplashID: p.ID, UnsplashID: p.ID,
Author: p.User.Username, Author: p.User.Username,