mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-11 01:28:29 -06:00
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:
parent
c9adc5e7e0
commit
089e0f9a94
@ -68,10 +68,6 @@ 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
|
|
||||||
Invidious::Database::Users.mark_watched(user.as(User), id)
|
|
||||||
end
|
|
||||||
|
|
||||||
if CONFIG.enable_user_notifications && notifications && notifications.includes? id
|
if CONFIG.enable_user_notifications && notifications && notifications.includes? id
|
||||||
Invidious::Database::Users.remove_notification(user.as(User), id)
|
Invidious::Database::Users.remove_notification(user.as(User), id)
|
||||||
env.get("user").as(User).notifications.delete(id)
|
env.get("user").as(User).notifications.delete(id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user