Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local api support for viewing individual community posts + comments #6491

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

ChunkyProgrammer
Copy link
Member

Add local api support for viewing community posts

Pull Request Type

  • Feature Implementation

Related issue

closes #3253

Description

This PR also adds support for viewing community posts + comments to the local API

Testing

  • set local api as primary api
  • disable invidious
  • go to mr beast channel
  • go to community tab
  • click on the link to view one of the posts
  • load comments
  • load comment replies
  • load more comments

See tests here: #5589

Desktop

  • OS: Fedora Linux
  • OS Version: 41
  • FreeTube version: latest nightly

Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need to be done just yet as this PR is still a draft, but it would be good to remove the now unused "posts are only supported by invidious" string once this is ready for review.

src/renderer/helpers/api/local.js Outdated Show resolved Hide resolved
@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from 134a6e6 to 22911ff Compare December 31, 2024 23:04
@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from 22911ff to a85ba81 Compare January 9, 2025 16:30
@efb4f5ff-1298-471a-8973-3d47447115dc

Upstream just merged🎉

@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from a85ba81 to 3ad4396 Compare January 21, 2025 13:20
@ChunkyProgrammer ChunkyProgrammer marked this pull request as ready for review January 21, 2025 13:23
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 21, 2025 13:24
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 21, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc

Error:

VirtualBoxVM_2gUbmdP7GZ.mp4

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jan 21, 2025
@ChunkyProgrammer ChunkyProgrammer marked this pull request as draft January 22, 2025 13:34
auto-merge was automatically disabled January 22, 2025 13:34

Pull request was converted to draft

@ChunkyProgrammer
Copy link
Member Author

Error:
VirtualBoxVM_2gUbmdP7GZ.mp4

Hmm, weirdly I'm only getting that error on that specific post

Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've submitted a PR upstream to fix the problem LuanRT/YouTube.js#882

The post params were only being encoded to base64 not URL safe base64, so for that post it contained a / which should have been an _, which made YouTube return the channel home tab.

src/renderer/helpers/api/local.js Outdated Show resolved Hide resolved
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from 8f33321 to 165f6e0 Compare January 27, 2025 03:47
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from 165f6e0 to e038faa Compare January 30, 2025 17:20
Copy link
Contributor

github-actions bot commented Feb 1, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@ChunkyProgrammer ChunkyProgrammer force-pushed the add-local-api-support-for-viewing-community-posts branch from e038faa to e166ec6 Compare February 2, 2025 03:07
Copy link
Contributor

github-actions bot commented Feb 2, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: View post on community tab
3 participants