From 7641b731584593a7605f9af050f9adad27073f4b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 3 Sep 2021 20:37:36 -0600 Subject: [PATCH] Update Timeline, remove recent posts --- resources/assets/js/components/Timeline.vue | 79 +++++++++++---------- 1 file changed, 42 insertions(+), 37 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index b04cc298d..cfd59ac62 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -20,11 +20,11 @@
-
+ -
+ -
+ { $('[data-toggle="tooltip"]').tooltip(); let u = new URLSearchParams(window.location.search); if(u.has('a')) { @@ -566,6 +565,7 @@ break; } } + this.fetchTimelineApi(); }); }, @@ -584,7 +584,9 @@ } window._sharedData.curUser = res.data; window.App.util.navatar(); - this.hasStory(); + // this.$nextTick(() => { + // this.hasStory(); + // }); // this.expRec(); }).catch(err => { swal( @@ -631,11 +633,14 @@ this.min_id = Math.max(...ids).toString(); this.max_id = Math.min(...ids).toString(); this.loading = false; - $('.timeline .pagination').removeClass('d-none'); + // $('.timeline .pagination').removeClass('d-none'); - if(this.hashtagPosts.length == 0) { - this.fetchHashtagPosts(); - } + // if(this.hashtagPosts.length == 0) { + // this.fetchHashtagPosts(); + // } + this.$nextTick(() => { + this.hasStory(); + }); // this.fetchStories(); // this.rtw(); @@ -645,14 +650,14 @@ }); }, 500); - axios.get('/api/pixelfed/v2/discover/posts/trending', { - params: { - range: 'daily' - } - }).then(res => { - let data = res.data.filter(post => this.ids.indexOf(post.id) === -1); - this.discover_feed = data; - }); + // axios.get('/api/pixelfed/v2/discover/posts/trending', { + // params: { + // range: 'daily' + // } + // }).then(res => { + // let data = res.data.filter(post => this.ids.indexOf(post.id) === -1); + // this.discover_feed = data; + // }); }).catch(err => { swal(