mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
Remove notifications once viewed
This commit is contained in:
parent
cc6d322b0c
commit
ff91ec820c
@ -594,6 +594,7 @@ get "/feed/subscriptions" do |env|
|
|||||||
videos = PG_DB.query_all("SELECT * FROM channel_videos WHERE ucid IN (#{args}) \
|
videos = PG_DB.query_all("SELECT * FROM channel_videos WHERE ucid IN (#{args}) \
|
||||||
ORDER BY published DESC LIMIT $1 OFFSET $2", [max_results, offset] + user.subscriptions, as: ChannelVideo)
|
ORDER BY published DESC LIMIT $1 OFFSET $2", [max_results, offset] + user.subscriptions, as: ChannelVideo)
|
||||||
|
|
||||||
|
PG_DB.exec("UPDATE users SET notifications = $1 WHERE id = $2", [] of String, sid)
|
||||||
env.set "notifications", 0
|
env.set "notifications", 0
|
||||||
|
|
||||||
templated "subscriptions"
|
templated "subscriptions"
|
||||||
|
Loading…
Reference in New Issue
Block a user