Fix incorrect default in user preferences

pull/334/head
Omar Roth 2019-01-31 14:40:26 -06:00
rodzic def58ff11f
commit cef061d6fb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1146,7 +1146,7 @@ post "/preferences" do |env|
captions = [captions_0, captions_1, captions_2] captions = [captions_0, captions_1, captions_2]
related_videos = env.params.body["related_videos"]?.try &.as(String) related_videos = env.params.body["related_videos"]?.try &.as(String)
related_videos ||= "off" related_videos ||= "on"
related_videos = related_videos == "on" related_videos = related_videos == "on"
redirect_feed = env.params.body["redirect_feed"]?.try &.as(String) redirect_feed = env.params.body["redirect_feed"]?.try &.as(String)