diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-21 13:06:29 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-21 13:06:29 -0600 |
| commit | 2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1 (patch) | |
| tree | 0b051861ce642411dc5941cf82802a8a4cf2faf3 /src | |
| parent | 588f9b9bd68c1bde28324918f6123d4b5254213c (diff) | |
| download | invidious-2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1.tar.gz invidious-2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1.tar.bz2 invidious-2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1.zip | |
Only show toggle watched button when relevant
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
