Skip to content

Commit 8de6fbc

Browse files
Fix getting community posts on subscription page (FreeTubeApp#7603)
* Fix getting community posts on subscription page * use newer params as well (old params still worked but no idea how long they will work for?)
1 parent 26c43bc commit 8de6fbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/helpers/api/local.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export async function getLocalChannelCommunity(id) {
518518
try {
519519
const response = await innertube.actions.execute('/browse', {
520520
browseId: id,
521-
params: 'Egljb21tdW5pdHnyBgQKAkoA'
521+
params: 'EgVwb3N0c_IGBAoCSgA%3D'
522522
// protobuf for the community tab (this is the one that YouTube uses,
523523
// it has some empty fields in the protobuf but it doesn't work if you remove them)
524524
})
@@ -527,7 +527,7 @@ export async function getLocalChannelCommunity(id) {
527527

528528
// if the channel doesn't have a community tab, YouTube returns the home tab instead
529529
// so we need to check that we got the right tab
530-
if (communityTab.current_tab?.endpoint.metadata.url?.endsWith('/community')) {
530+
if (communityTab.current_tab?.endpoint.metadata.url?.endsWith('/posts')) {
531531
return parseLocalCommunityPosts(communityTab.posts)
532532
} else {
533533
return []

0 commit comments

Comments
 (0)