diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-22 11:36:47 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-22 11:36:47 -0500 |
| commit | 0b0e56504a11a9fbe4a2a38fe99cb687870fca1c (patch) | |
| tree | 690d3798cb804c2a2d309128dc692e76f2d92c2f | |
| parent | 09cd7bcc6618693ce64ce4a4d7695328ea362b54 (diff) | |
| download | invidious-0b0e56504a11a9fbe4a2a38fe99cb687870fca1c.tar.gz invidious-0b0e56504a11a9fbe4a2a38fe99cb687870fca1c.tar.bz2 invidious-0b0e56504a11a9fbe4a2a38fe99cb687870fca1c.zip | |
Properly clear notifications when viewing feed
| -rw-r--r-- | src/invidious.cr | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
