From 2ef2c7523d9961a30ce5c855a219745191c06821 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 27 May 2020 22:12:12 +0200 Subject: [PATCH] Also return unsplash info when searching --- pkg/modules/background/unsplash/unsplash.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/modules/background/unsplash/unsplash.go b/pkg/modules/background/unsplash/unsplash.go index 8e20e86f..73df0936 100644 --- a/pkg/modules/background/unsplash/unsplash.go +++ b/pkg/modules/background/unsplash/unsplash.go @@ -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 }