Also return unsplash info when searching

This commit is contained in:
kolaente 2020-05-27 22:12:12 +02:00
parent e5e30d0915
commit 2ef2c7523d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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
}