diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 9b01a825..a42b9448 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -45,11 +45,13 @@ export default { }, }, mounted() { - this.fetchFeed().then(videos => { - this.videosStore = videos; - this.loadMoreVideos(); - this.updateWatched(this.videos); - }); + if (this.authenticated) + this.fetchFeed().then(videos => { + this.videosStore = videos; + this.loadMoreVideos(); + this.updateWatched(this.videos); + }); + else this.$router.push("/login"); }, activated() { document.title = this.$t("titles.feed") + " - Piped";