Invidious is an alternative front-end to YouTube
Prevent embeds from appearing in watch history
Omar Roth775612ec5a90
diff --git a/src/invidious.cr b/src/invidious.crindex d59d1aba..b86d46fa 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -619,9 +619,9 @@ get "/embed/:id" do |env|params.annotations = trueend- if watched && !watched.includes? id- PG_DB.exec("UPDATE users SET watched = watched || $1 WHERE email = $2", [id], user.as(User).email)- end+ # if watched && !watched.includes? id+ # PG_DB.exec("UPDATE users SET watched = watched || $1 WHERE email = $2", [id], user.as(User).email)+ # endif notifications && notifications.includes? idPG_DB.exec("UPDATE users SET notifications = array_remove(notifications, $1) WHERE email = $2", id, user.as(User).email)