Properly clear notifications when viewing feed

このコミットが含まれているのは:
Omar Roth 2018-07-22 11:36:47 -05:00
コミット 0b0e56504a
1個のファイルの変更2行の追加1行の削除

ファイルの表示

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