diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-01-31 14:54:02 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-01-31 14:54:02 -0600 |
| commit | fbb5df084990a67e934d9aeb8fc535a0a7198b8e (patch) | |
| tree | 70e78e98278a11ec109ca3de9dd78555242e5baa /src | |
| parent | cef061d6fb62cee6ebd87c7d98c778fccb9271bb (diff) | |
| download | invidious-fbb5df084990a67e934d9aeb8fc535a0a7198b8e.tar.gz invidious-fbb5df084990a67e934d9aeb8fc535a0a7198b8e.tar.bz2 invidious-fbb5df084990a67e934d9aeb8fc535a0a7198b8e.zip | |
Default to showing recommendations for logged out users
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 69bbed77..a720670a 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1146,7 +1146,7 @@ post "/preferences" do |env| captions = [captions_0, captions_1, captions_2] related_videos = env.params.body["related_videos"]?.try &.as(String) - related_videos ||= "on" + related_videos ||= "off" related_videos = related_videos == "on" redirect_feed = env.params.body["redirect_feed"]?.try &.as(String) diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index dc58d48d..a8f98492 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -141,7 +141,7 @@ </div> </div> </div> - <% if preferences && preferences.related_videos || plid %> + <% if !preferences || preferences && preferences.related_videos || plid %> <div class="pure-u-1 pure-u-md-1-5"> <% if plid %> <div id="playlist" class="h-box"> |
