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

Assign authorId to posts in the parsing functions #5936

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Oct 25, 2024

Assign authorId to posts in the parsing functions

Pull Request Type

  • Refactor

Description

Currently we assign the authorId (channel ID) to community posts after we have parsed them, this is because when we originally implemented community post suppport into FreeTube we didn't need the channel ID. As we now need the channel ID everywhere that we use community posts in FreeTube we have code in various places to add the channel IDs to the posts after the fact. As the channel IDs are also available in the API response data, this pull request moves the assigning of the authorId into the parsing functions, which lets us clean up all the other code that was assigning the channel ID after the fact.

Testing

Check that the channel name on community posts is still a link on the subscriptions tab and the channel page with both API backends.

Side note: The live channel tab endpoint is currently broken on Invidious' end, so if you get an error about Request contains an invalid argument on the channel page you can ignore it as it is unrelated to this pull request: iv-org/invidious#5021

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version:

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 25, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 25, 2024 09:05
@FreeTubeBot FreeTubeBot merged commit 3486f00 into FreeTubeApp:development Oct 26, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 26, 2024
@absidue absidue deleted the post-author-id branch October 26, 2024 06:30
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
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.

5 participants