From 41b0fb8b962fb8fd2c54cbeb336e228d9fbd20cf Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 29 Mar 2021 12:12:53 +0530 Subject: [PATCH] Fix for channel continuation. --- src/components/Channel.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 631cf1d0..9863abcf 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -75,7 +75,13 @@ export default { .then(() => (document.title = this.channel.name + " - Piped")); }, handleScroll() { - if (this.loading || !this.channel || !this.channel.nextpage) return; + if ( + this.loading || + !this.channel || + !this.channel.nextpage || + !this.channel.nextid + ) + return; if ( window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight @@ -86,7 +92,9 @@ export default { "/nextpage/channels/" + this.$route.params.channelId + "?url=" + - encodeURIComponent(this.channel.nextpage) + encodeURIComponent(this.channel.nextpage) + + "&id=" + + encodeURIComponent(this.channel.nextid) ).then(json => { this.channel.relatedStreams.concat(json.relatedStreams); this.channel.nextpage = json.nextpage;