Also return unsplash info when searching

This commit is contained in:
kolaente 2020-05-27 22:12:12 +02:00
parent e5e30d0915
commit 2ef2c7523d
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,11 @@ func (p *Provider) Search(search string, page int64) (result []*background.Image
ID: p.ID,
URL: p.Urls.Raw,
Thumb: p.Urls.Thumb,
Info: &models.UnsplashPhoto{
UnsplashID: p.ID,
Author: p.User.Username,
AuthorName: p.User.Name,
},
})
photos[p.ID] = p
}