Default to showing recommendations for logged out users

This commit is contained in:
Omar Roth 2019-01-31 14:54:02 -06:00
parent cef061d6fb
commit fbb5df0849
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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">