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

@ -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,