From 2d2d4a580f045d012280e5413f82f54c5af9fc7d Mon Sep 17 00:00:00 2001 From: bararolig-anders Date: Thu, 22 Jan 2026 20:35:53 +0100 Subject: [PATCH] Fix bug: skipping monthly trending pictures if not enough daily The intention with the code is that if there are not enough trending pictures on the daily view, we will zoom out and look at monthly trends and pick pictures from those. However, the if-statement was written in a way where it would ask for monthly trends and immediately ask for yearly trends. On our server yearly returns no images, so the Explore page would be empty. This change makes it so that it looks for the monthly trending pictures and evaluates whether to use those or look for yearly trending pictures. --- resources/assets/components/landing/Explore.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/components/landing/Explore.vue b/resources/assets/components/landing/Explore.vue index 16152e7fc..e2a4985ff 100644 --- a/resources/assets/components/landing/Explore.vue +++ b/resources/assets/components/landing/Explore.vue @@ -99,7 +99,7 @@ }) .then(res => { if(res && res.data.length) { - if(this.rangeIndex == 2 && res.data.length > 3) { + if(res.data.length > 3) { this.feed = res.data; this.loading = false; } else {