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
don't error when a channel doesn't have any community posts #4413
base: master
Are you sure you want to change the base?
don't error when a channel doesn't have any community posts #4413
Conversation
I wanted to test this but I get "This channel hasn't posted yet" even if I don't have this pull request merged into my debug instance and that string doesn't even exists on the Invidious code. However if I merge this pull request into my debug instance I don't even get the message "This channel hasn't posted yet" on Invidious. What is going on? |
That's the point. This PR makes Invidious response to blank responses from YouTube the same by displaying an empty page instead of an error message. I'm not sure if I agree with not showing a message though. |
I can add a message to the invidious ui for the empty tabs (that way we can also include it in weblate). I don't think it would be that beneficial to include that message in the api imo |
Yes please, that'd be great. This PR just comes with an unintentional side-effect of also removing the error message on the frontend side of things. |
46ca001
to
eaf467d
Compare
When a community tab is empty it will display the message in the UI now 😄 |
3b7b5e6
to
7a4f2f1
Compare
7a4f2f1
to
dc0e9f8
Compare
dc0e9f8
to
ee9f4e2
Compare
build failure is unrelated to this PR and caused by changes in crystal nightly |
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
ee9f4e2
to
4656c20
Compare
we now return an empty array when there are no posts.
closes #3814
FreeTubeApp/FreeTube#3499