@@ -641,6 +641,12 @@
if(document.querySelectorAll('body')[0].classList.contains('loggedIn') == true) {
axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(res => {
this.user = res.data;
+ if(res.data.id == this.profileId || this.relationship.following == true) {
+ axios.get('/api/stories/v1/exists/' + this.profileId)
+ .then(res => {
+ this.hasStory = res.data == true;
+ })
+ }
});
}
if(window.outerWidth < 576) {
@@ -659,10 +665,7 @@
this.profile = res.data;
}).then(res => {
this.fetchPosts();
- axios.get('/api/stories/v1/exists/' + this.profileId)
- .then(res => {
- this.hasStory = res.data == true;
- })
+
});
},