diff --git a/src/invidious.cr b/src/invidious.cr index fa4f7ac0f..1ff949293 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1664,6 +1664,7 @@ post "/delete_account" do |env| view_name = "subscriptions_#{sha256(user.email)[0..7]}" PG_DB.exec("DROP MATERIALIZED VIEW #{view_name}") PG_DB.exec("DELETE FROM users * WHERE email = $1", user.email) + PG_DB.exec("DELETE FROM session_ids * WHERE email = $1", user.email) env.request.cookies.each do |cookie| cookie.expires = Time.new(1990, 1, 1)