-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Remove trending page from Invidious #5537
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| <div class="feed-menu"> | ||
| <% feed_menu = env.get("preferences").as(Preferences).feed_menu.dup %> | ||
| <% | ||
| # Remove the Trending page from the menu for users with the Trending | ||
| # item inside their PREFS cookie or in their user preferences saved | ||
| # in the database (if registered user) | ||
| # https://github.com/iv-org/invidious/issues/5397 | ||
| %> | ||
| <% feed_menu.reject! {|item| "Trending" == item} %> | ||
|
Comment on lines
+3
to
+9
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if this is a good way to remove the Trending page from the feed menu. Registered users and unregistered users with the PREFS cookie set with Registered users and unregistered users will have to save their preferences again in order to remove
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good to me! |
||
| <% if !env.get?("user") %> | ||
| <% feed_menu.reject! {|item| {"Subscriptions", "Playlists"}.includes? item} %> | ||
| <% end %> | ||
|
|
||
This file was deleted.
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.
Do you think that we should log a warning if
feed_menucontainsTrendingin the server config?