invidious
invidious copied to clipboard
don't error when a channel doesn't have any community posts
we now return an empty array when there are no posts.
closes https://github.com/iv-org/invidious/issues/3814 https://github.com/FreeTubeApp/FreeTube/issues/3499
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. https://github.com/iv-org/invidious/issues/3814#issuecomment-1918129165
I'm not sure if I agree with not showing a message though. #3814 (comment)
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
I'm not sure if I agree with not showing a message though. #3814 (comment)
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.
When a community tab is empty it will display the message in the UI now :smile:
build failure is unrelated to this PR and caused by changes in crystal nightly
This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.
I think YouTube is hiding the community tab if it's empty now