From 7ac7257542d60c44a034add183450e725c9dc6c0 Mon Sep 17 00:00:00 2001 From: Gus Libens <27970303+goestav@users.noreply.github.com> Date: Sat, 6 Dec 2025 18:07:11 +0100 Subject: [PATCH] refactor: add `mark_watched` query parameter --- src/invidious/routes/watch.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/routes/watch.cr b/src/invidious/routes/watch.cr index e08bab04..475f68a9 100644 --- a/src/invidious/routes/watch.cr +++ b/src/invidious/routes/watch.cr @@ -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