Prevent embeds from appearing in watch history

pull/633/head
Omar Roth 2019-07-05 16:55:06 -05:00
rodzic fd43b16213
commit 775612ec5a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B8254FB7EC3D37F2
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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)