1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-03-12 15:16:46 +00:00

Update DiscoverComponent

This commit is contained in:
Daniel Supernault 2021-01-31 00:58:24 -07:00
parent 2c661b815c
commit 6af2bea5e0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -195,12 +195,10 @@
if(this.trendingRange == 'daily' && this.trendingDaily.length) { if(this.trendingRange == 'daily' && this.trendingDaily.length) {
this.trending = this.trendingDaily; this.trending = this.trendingDaily;
this.trendingLoading = false; this.trendingLoading = false;
return;
} }
if(this.trendingRange == 'monthly' && this.trendingMonthly.length) { if(this.trendingRange == 'monthly' && this.trendingMonthly.length) {
this.trending = this.trendingMonthly; this.trending = this.trendingMonthly;
this.trendingLoading = false; this.trendingLoading = false;
return;
} }
axios.get('/api/pixelfed/v2/discover/posts/trending', { axios.get('/api/pixelfed/v2/discover/posts/trending', {
params: { params: {