From 88a2cede19f1844814530af948c3cc5a0b026419 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 14 Nov 2021 20:47:15 +0100 Subject: [PATCH] feat: use wallpaper topic for default unsplash background list --- pkg/modules/background/unsplash/unsplash.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/modules/background/unsplash/unsplash.go b/pkg/modules/background/unsplash/unsplash.go index 7f13be8e..f097c6da 100644 --- a/pkg/modules/background/unsplash/unsplash.go +++ b/pkg/modules/background/unsplash/unsplash.go @@ -163,14 +163,14 @@ func (p *Provider) Search(s *xorm.Session, search string, page int64) (result [] } if existsForPage { - log.Debugf("Serving initial unsplash collection for page %d from cache, last updated at %v", page, emptySearchResult.lastCached) + log.Debugf("Serving initial wallpaper topic from unsplash for page %d from cache, last updated at %v", page, emptySearchResult.lastCached) return emptySearchResult.images[page], nil } - log.Debugf("Retrieving initial unsplash collection for page %d from unsplash api", page) + log.Debugf("Retrieving initial wallpaper topic from unsplash for page %d from unsplash api", page) collectionResult := []*Photo{} - err = doGet("collections/317099/photos?page="+strconv.FormatInt(page, 10)+"&per_page=25&order_by=latest", &collectionResult) + err = doGet("topics/wallpapers/photos?page="+strconv.FormatInt(page, 10)+"&per_page=25&order_by=latest", &collectionResult) if err != nil { return }