mirror of https://github.com/pixelfed/pixelfed
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.pull/6432/head
parent
47b33b0a29
commit
2d2d4a580f
Loading…
Reference in New Issue