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

Watch: Fix "Show More Replies" button visibility condition #2460

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

Svallinn
Copy link
Member

@Svallinn Svallinn commented Aug 6, 2022

Pull Request Type
Please select what type of pull request this is:

  • Bugfix

Related issue
None

Description
YouTube's reply count is unreliable. If I had to wager a guess, it's probably because comments that have been flagged/removed by the system don't decrement the counter at all.
This PR changes the visibility condition of the "Show More Replies" to check if the continuation token is null or not, which is, as far as I can see, reliable without a fault.

Testing / Screenshots
Tested video: https://www.youtube.com/watch?v=cMIgU6YlsEw (pinned comment)

BEFORE

Screenshot from 2022-08-06 19-32-02

AFTER

Screenshot from 2022-08-06 19-32-12

Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

Tested locally with https://www.youtube.com/watch?v=cMIgU6YlsEw
(URL provided in description is incorrect)

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.

Tested with pikachuexe's URL.

@Svallinn
Copy link
Member Author

Svallinn commented Aug 7, 2022

Tested locally with https://www.youtube.com/watch?v=cMIgU6YlsEw (URL provided in description is incorrect)

Sneaky comma impostor :P

@PikachuEXE
Copy link
Collaborator

I can't even guess the reason there is comma...
Hand typing?

@PrestonN PrestonN merged commit fa01297 into development Aug 8, 2022
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

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

LGTM

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