mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-25 15:18:29 -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
|
end
|
||||||
env.params.query.delete_all("iv_load_policy")
|
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)
|
Invidious::Database::Users.mark_watched(user.as(User), id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user