From 775612ec5a90c4ed4047c0c73e6f73c30abd509a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 5 Jul 2019 16:55:06 -0500 Subject: [PATCH] Prevent embeds from appearing in watch history --- src/invidious.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index d59d1aba..b86d46fa 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -619,9 +619,9 @@ get "/embed/:id" do |env| params.annotations = true end - 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) + # end if notifications && notifications.includes? id PG_DB.exec("UPDATE users SET notifications = array_remove(notifications, $1) WHERE email = $2", id, user.as(User).email)