summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-11-21 13:06:29 -0600
committerOmar Roth <omarroth@hotmail.com>2018-11-21 13:06:29 -0600
commit2ce038fb7aa0b089a16fc5dc430d7ac4ea2f63b1 (patch)
tree0b051861ce642411dc5941cf82802a8a4cf2faf3 /src
parent588f9b9bd68c1bde28324918f6123d4b5254213c (diff)
downloadinvidious-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.cr5
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