Also return unsplash info when searching
This commit is contained in:
parent
e5e30d0915
commit
2ef2c7523d
@ -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…
x
Reference in New Issue
Block a user