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

Fix error when fetching deleted comment replies in local API #5255

Merged

Conversation

PikachuEXE
Copy link
Collaborator

Title

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Description

There is an error when trying to get replies for a comment but all replies deleted
This PR removes that error toast for Local API (no idea how to fix IV API)

Screenshots

image

Testing

  • Find video with a comment with all replies deleted e.g. https://youtu.be/_09sYEkt3Ow, Hi TrainDaily on first page
  • Press view reply(s) a few times to ensure no error toast hidden

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) June 12, 2024 02:11
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 12, 2024
Copy link
Member

Choose a reason for hiding this comment

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

This isnt a big of an issue but i will mention it nonetheless

On first click it will change into Hide reply -> Click on Hide reply changes into Show reply -> Click on Show reply -> see that it doesnt change to Hide reply

VirtualBoxVM_2MA3RQB01F.mp4

Q: Should it even transition to Hide reply if there are no replies? Why not just stay on Show reply?

@PikachuEXE
Copy link
Collaborator Author

No idea how to properly deal with this kind of edge cases (replies all deleted)
Get 2 people to agree on something first coz I am just here to fix the display of error

However if we follow Youtube it does the same thing
2024-06-12 14_32_54-Soviet Train Simulator _ Trans-Siberian Railway Simulator Gameplay - YouTube - V

@FreeTubeBot FreeTubeBot merged commit c3a99b6 into FreeTubeApp:development Jun 12, 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 Jun 12, 2024
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc deleted the fix/get-deleted-reply-error branch June 12, 2024 20:36
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Jun 13, 2024
* development: (60 commits)
  check for 204 error (FreeTubeApp#5259)
  Translated using Weblate (Turkish)
  ! Fix error when fetching deleted comment replies in local API (FreeTubeApp#5255)
  Optical enhancement - Improved spacing on the about page FreeTubeApp#5210 (FreeTubeApp#5257)
  Translated using Weblate (Czech)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Estonian)
  Translated using Weblate (German)
  Update playlist page to add remove duplicate videos button for user playlists (FreeTubeApp#5191)
  Respect playlist sort order in `watch-video-playlist` (FreeTubeApp#5013)
  Translated using Weblate (Serbian)
  Translated using Weblate (Chinese (Simplified))
  Translated using Weblate (Chinese (Traditional))
  Translated using Weblate (Arabic)
  Translated using Weblate (Polish)
  Translated using Weblate (Italian)
  Translated using Weblate (Turkish)
  Translated using Weblate (Croatian)
  Translated using Weblate (Dutch)
  Translated using Weblate (Spanish)
  ...
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