fix: return BlurHash in unsplash search results
This commit is contained in:
parent
ba2bdff391
commit
6b51fae093
1 changed files with 3 additions and 2 deletions
|
@ -215,8 +215,9 @@ func (p *Provider) Search(s *xorm.Session, search string, page int64) (result []
|
||||||
result = []*background.Image{}
|
result = []*background.Image{}
|
||||||
for _, p := range searchResult.Results {
|
for _, p := range searchResult.Results {
|
||||||
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,
|
||||||
|
|
Loading…
Reference in a new issue