Also return unsplash info when searching
This commit is contained in:
parent
e5e30d0915
commit
2ef2c7523d
1 changed files with 5 additions and 0 deletions
|
@ -140,6 +140,11 @@ func (p *Provider) Search(search string, page int64) (result []*background.Image
|
||||||
ID: p.ID,
|
ID: p.ID,
|
||||||
URL: p.Urls.Raw,
|
URL: p.Urls.Raw,
|
||||||
Thumb: p.Urls.Thumb,
|
Thumb: p.Urls.Thumb,
|
||||||
|
Info: &models.UnsplashPhoto{
|
||||||
|
UnsplashID: p.ID,
|
||||||
|
Author: p.User.Username,
|
||||||
|
AuthorName: p.User.Name,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
photos[p.ID] = p
|
photos[p.ID] = p
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue