1
0

feat: return BlurHash for unsplash search results

This commit is contained in:
kolaente
2021-12-12 21:49:42 +01:00
committed by Gitea
parent 2ec7d7a8a8
commit 6df865876d
2 changed files with 7 additions and 5 deletions

View File

@ -179,8 +179,9 @@ func (p *Provider) Search(s *xorm.Session, search string, page int64) (result []
result = []*background.Image{}
for _, p := range collectionResult {
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,