+
-
+
{
$('[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(