mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-22 14:51:20 +00:00
Add ability to disable all user notifications (#3473)
This commit is contained in:
@@ -147,7 +147,7 @@ module Invidious::Routes::Embed
|
||||
# PG_DB.exec("UPDATE users SET watched = array_append(watched, $1) WHERE email = $2", id, user.as(User).email)
|
||||
# end
|
||||
|
||||
if notifications && notifications.includes? id
|
||||
if CONFIG.enable_user_notifications && notifications && notifications.includes? id
|
||||
Invidious::Database::Users.remove_notification(user.as(User), id)
|
||||
env.get("user").as(User).notifications.delete(id)
|
||||
notifications.delete(id)
|
||||
|
||||
Reference in New Issue
Block a user