From 6b51fae0931308464038f55b25e81e68d014c49c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 12 Dec 2021 22:34:18 +0100 Subject: [PATCH] fix: return BlurHash in unsplash search results --- pkg/modules/background/unsplash/unsplash.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/modules/background/unsplash/unsplash.go b/pkg/modules/background/unsplash/unsplash.go index 02d0e47b..1ee15ea5 100644 --- a/pkg/modules/background/unsplash/unsplash.go +++ b/pkg/modules/background/unsplash/unsplash.go @@ -215,8 +215,9 @@ func (p *Provider) Search(s *xorm.Session, search string, page int64) (result [] result = []*background.Image{} for _, p := range searchResult.Results { result = append(result, &background.Image{ - ID: p.ID, - URL: getImageID(p.Urls.Raw), + ID: p.ID, + URL: getImageID(p.Urls.Raw), + BlurHash: p.BlurHash, Info: &models.UnsplashPhoto{ UnsplashID: p.ID, Author: p.User.Username,