diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 1dfd5302..cb8e11de 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -124,9 +124,18 @@ export default { authToken: this.getAuthToken(), }); } else { - return await this.fetchJson(this.authApiUrl() + "/feed/unauthenticated", { - channels: this.getUnauthenticatedChannels(), - }); + const channels = this.getUnauthenticatedChannels(); + const split = channels.split(","); + if (split.length > 100) { + return await this.fetchJson(this.authApiUrl() + "/feed/unauthenticated", null, { + method: "POST", + body: JSON.stringify(split), + }); + } else { + return await this.fetchJson(this.authApiUrl() + "/feed/unauthenticated", { + channels: channels, + }); + } } }, async loadChannelGroups() { diff --git a/src/components/SubscriptionsPage.vue b/src/components/SubscriptionsPage.vue index 116e4572..85b49050 100644 --- a/src/components/SubscriptionsPage.vue +++ b/src/components/SubscriptionsPage.vue @@ -167,9 +167,18 @@ export default { }, }); } else { - return await this.fetchJson(this.authApiUrl() + "/subscriptions/unauthenticated", { - channels: this.getUnauthenticatedChannels(), - }); + const channels = this.getUnauthenticatedChannels(); + const split = channels.split(","); + if (split.length > 100) { + return await this.fetchJson(this.authApiUrl() + "/subscriptions/unauthenticated", null, { + method: "POST", + body: JSON.stringify(split), + }); + } else { + return await this.fetchJson(this.authApiUrl() + "/subscriptions/unauthenticated", { + channels: this.getUnauthenticatedChannels(), + }); + } } }, async loadChannelGroups() {