summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-07-05 16:55:06 -0500
committerOmar Roth <omarroth@protonmail.com>2019-07-05 16:55:28 -0500
commit775612ec5a90c4ed4047c0c73e6f73c30abd509a (patch)
treeb0a007c2706d5a8291004f499dd5f23b23b472f0 /src
parentfd43b16213df68e2572ac4e31a19c0dd1611dd13 (diff)
downloadinvidious-775612ec5a90c4ed4047c0c73e6f73c30abd509a.tar.gz
invidious-775612ec5a90c4ed4047c0c73e6f73c30abd509a.tar.bz2
invidious-775612ec5a90c4ed4047c0c73e6f73c30abd509a.zip
Prevent embeds from appearing in watch history
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr6
1 files 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)