refactor: prevent server from marking the video as "watched" when the page loads

This will be handled at the front-end with JavaScript.
This commit is contained in:
Gus Libens 2025-11-07 18:37:08 +01:00
parent 6769cb6561
commit 9aaad68929
No known key found for this signature in database
GPG Key ID: 032E49D0FE9D51EA

View File

@ -67,10 +67,6 @@ module Invidious::Routes::Watch
end
env.params.query.delete_all("iv_load_policy")
if watched && preferences.watch_history
Invidious::Database::Users.mark_watched(user.as(User), id)
end
if CONFIG.enable_user_notifications && notifications && notifications.includes? id
Invidious::Database::Users.remove_notification(user.as(User), id)
env.get("user").as(User).notifications.delete(id)