From 2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 21 Nov 2018 13:06:29 -0600 Subject: [PATCH] Only show toggle watched button when relevant --- src/invidious.cr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 520e4ebf..d0ef43c1 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1611,7 +1611,10 @@ get "/feed/subscriptions" do |env| if user user = user.as(User) preferences = user.preferences - env.set "show_watched", true + + if preferences.unseen_only + env.set "show_watched", true + end # Refresh account headers = HTTP::Headers.new