From 0b0e56504a11a9fbe4a2a38fe99cb687870fca1c Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 22 Jul 2018 11:36:47 -0500 Subject: [PATCH] Properly clear notifications when viewing feed --- src/invidious.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index be05bc20..5a0853f4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1193,7 +1193,8 @@ get "/feed/subscriptions" do |env| end PG_DB.exec("UPDATE users SET notifications = $1 WHERE id = $2", [] of String, user.id) - env.set "notifications", 0 + user.notifications = [] of String + env.set "user", user templated "subscriptions" else