Only show toggle watched button when relevant

This commit is contained in:
Omar Roth 2018-11-21 13:06:29 -06:00
parent 588f9b9bd6
commit 2ce038fb7a

View File

@ -1611,7 +1611,10 @@ get "/feed/subscriptions" do |env|
if user if user
user = user.as(User) user = user.as(User)
preferences = user.preferences preferences = user.preferences
env.set "show_watched", true
if preferences.unseen_only
env.set "show_watched", true
end
# Refresh account # Refresh account
headers = HTTP::Headers.new headers = HTTP::Headers.new