mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-25 07:08:30 -06:00
refactor: add mark_watched query parameter
This commit is contained in:
parent
d372a59394
commit
7ac7257542
@ -67,7 +67,7 @@ module Invidious::Routes::Watch
|
||||
end
|
||||
env.params.query.delete_all("iv_load_policy")
|
||||
|
||||
if watched && preferences.watch_history && !preferences.mark_watched_after_duration
|
||||
if watched && (env.params.query["mark_watched"]? || "1") == "1"
|
||||
Invidious::Database::Users.mark_watched(user.as(User), id)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user