Make the history recording optional.

This commit is contained in:
Le Jester
2022-02-16 16:16:59 -06:00
committed by Samantaz Fox
parent 997d936e9c
commit 897f871f99
7 changed files with 15 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ module Invidious::Routes::Watch
end
env.params.query.delete_all("iv_load_policy")
if watched && !watched.includes? id
if watched && preferences.watch_history && !watched.includes? id
Invidious::Database::Users.mark_watched(user.as(User), id)
end