-
Notifications
You must be signed in to change notification settings - Fork 857
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
Add ability to see comment replies of community posts through invidious #5589
Add ability to see comment replies of community posts through invidious #5589
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial code review with a few small comments.
src/renderer/components/ft-community-post/ft-community-post.vue
Outdated
Show resolved
Hide resolved
src/renderer/components/ft-community-post/ft-community-post.vue
Outdated
Show resolved
Hide resolved
If I take your example URL and replace the domain with Can probably be handled by adding an if-else that checks for the |
c5c86cb
to
8597175
Compare
|
Should work now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments is 0
when user is on the page of the post
VirtualBoxVM_RuRAnUS8Cn.mp4
Not sure if this is possible but maybe worth pointing out. On YT users can go to the post by clicking on the post image or clicking on the comments icon. Should we also implement clicking on the post to go to the post page?
firefox_pgPpCyUbsm.mp4
|
968fa06
to
d16c8b0
Compare
Could you elaborate some more on this? I dont understand why we need to hide it when the data was already provided before the user went into the post |
It currently makes another API request to fetch the post regardless of whether you clicked on an existing post or pasted in a link to a post, YouTube doesn't seem to have that information on the post page either (well it's in the comments section not the post body there), so maybe it's not in the API response for the post. One potential workaround would be to implement something similar to what FreeTube currently does for playlists, where if you go from the playlist page to the watch page, it saves the playlist in the store and then retrieves it again on the watch page. That would avoid one API request and make it possible to show the comment count, of course only if the user got to the post from somewhere else in the app, if you paste in a link it would still have to make the API request and wouldn't have the comment count. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken another look at this and have two small code nits, as well as a suggestion to pass the channel ID along in the URL when the user clicks the comment icon, as that lets us avoid the API request to get the channel ID.
src/renderer/components/ft-community-post/ft-community-post.vue
Outdated
Show resolved
Hide resolved
68cce0a
to
4eaf982
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my last review comment, everything else looks great.
Co-authored-by: absidue <[email protected]>
Co-authored-by: absidue <[email protected]>
4eaf982
to
3f00a8b
Compare
Co-Authored-By: absidue <[email protected]>
Found a bug, if I am viewing comment for a post (IV API) |
8bfeb67
* development: (24 commits) Add ability to see comment replies of community posts through invidious (FreeTubeApp#5589) Bump electron-builder from 24.13.3 to 25.0.5 (FreeTubeApp#5674) Change Sponsorblock Default Category Colors (FreeTubeApp#5686) Proxy live streams when "Proxy Videos Through Invidious" is enabled (FreeTubeApp#5649) Translated using Weblate (Belarusian) Translated using Weblate (Hebrew) Fix saving Invidious thumbnail URLs for subscriptions (FreeTubeApp#5662) Bump peter-evans/create-pull-request from 6 to 7 (FreeTubeApp#5676) Bump webpack-dev-server from 5.0.4 to 5.1.0 (FreeTubeApp#5672) Use auto-generated playlists for the videos tab on artist topic channels (FreeTubeApp#5661) Rewrite locale file updating to be more Vue 3 friendly (FreeTubeApp#5660) Bump sass from 1.77.8 to 1.78.0 (FreeTubeApp#5673) Bump electron from 32.0.1 to 32.0.2 (FreeTubeApp#5671) Bump marked from 14.1.0 to 14.1.2 (FreeTubeApp#5670) Bump postcss from 8.4.44 to 8.4.45 in the stylelint group (FreeTubeApp#5669) Bump the eslint group with 2 updates (FreeTubeApp#5668) Cleanup a few vue-i18n usages (FreeTubeApp#5663) Use nextTick instead of setTimeout to wait until Vue has rendered changes (FreeTubeApp#5664) Translated using Weblate (Estonian) Translated using Weblate (Belarusian) ... # Conflicts: # src/renderer/components/ft-community-post/ft-community-post.js # src/renderer/helpers/api/local.js
Add ability to see comment replies of community posts through invidious
Pull Request Type
Related issue
#3253 (invidious only)
Description
This PR will allow for viewing community posts and their comments through FreeTube when using the Invidious API
Screenshots
Community tab (notice that the icon for the comments is a different color now since it's a link)
community post page
community post page with comments
Testing
Channel Page:
go to a channel (with invidious enabled/backend fallback)
click community tab
click "comments" icon
go to post page
go to a channel (with local api enabled + no backend fallback)
click community tab
comments icon not clickable
Direct link
go to a post link with invidious enabled by putting the link in the search bar (ex: https://yt.artemislena.eu/post/UgkxhcOTXqzOaLBHfCQ-_-6JxsdydwSeFTei)
see post page
go to a post link with invidious disabled by putting the link in the search bar (ex: https://yt.artemislena.eu/post/UgkxhcOTXqzOaLBHfCQ-_-6JxsdydwSeFTei)
see message saying post can only be viewed with invidious enabled
Comments
Desktop
Additional context