mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Properly clear notifications when viewing feed
This commit is contained in:
parent
09cd7bcc66
commit
0b0e56504a
1 changed files with 2 additions and 1 deletions
|
@ -1193,7 +1193,8 @@ get "/feed/subscriptions" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
PG_DB.exec("UPDATE users SET notifications = $1 WHERE id = $2", [] of String, user.id)
|
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"
|
templated "subscriptions"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue