From bf0e3b705c261449e70800bb5f3981130ed3a5aa Mon Sep 17 00:00:00 2001 From: tuxsudo Date: Sun, 1 Oct 2023 02:33:42 -0400 Subject: [PATCH] fix(Invidious) add notifications config option (#13128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add enable_user_notifications config option to Invidious This will allow you to toggle `enable_user_notifications` on or off (default on) via https://github.com/iv-org/invidious/pull/3473 โš’๏ธ Fixes #13125 - [x] โš™๏ธ Feature/App addition - [ ] ๐Ÿช› Bugfix - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] ๐Ÿ”ƒ Refactor of current code **๐Ÿงช How Has This Been Tested?** Installed the helm chart locally with no errors **โœ”๏ธ Checklist:** - [x] โš–๏ธ My code follows the style guidelines of this project - [x] ๐Ÿ‘€ I have performed a self-review of my own code - [ ] #๏ธโƒฃ I have commented my code, particularly in hard-to-understand areas - [ ] ๐Ÿ“„ I have made corresponding changes to the documentation - [x] โš ๏ธ My changes generate no new warnings - [x] ๐Ÿงช I have added tests to this description that prove my fix is effective or that my feature works - [ ] โฌ†๏ธ I increased versions for any altered app according to semantic versioning --- --- charts/stable/invidious/Chart.yaml | 2 +- charts/stable/invidious/questions.yaml | 6 ++++++ charts/stable/invidious/templates/_config.tpl | 1 + charts/stable/invidious/values.yaml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/stable/invidious/Chart.yaml b/charts/stable/invidious/Chart.yaml index cc1ab4696d8..805a220bfbc 100644 --- a/charts/stable/invidious/Chart.yaml +++ b/charts/stable/invidious/Chart.yaml @@ -21,7 +21,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/invidious - https://github.com/iv-org/invidious - https://docs.invidious.io/installation/#docker -version: 6.0.5 +version: 6.0.6 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/invidious/questions.yaml b/charts/stable/invidious/questions.yaml index deca27317ce..147936da007 100644 --- a/charts/stable/invidious/questions.yaml +++ b/charts/stable/invidious/questions.yaml @@ -219,6 +219,12 @@ questions: type: string required: true default: "" + - variable: enable_user_notifications + label: User Notifications Enabled + description: Enable/Disable user notifications. + schema: + type: boolean + default: true - variable: background_jobs label: Background Jobs schema: diff --git a/charts/stable/invidious/templates/_config.tpl b/charts/stable/invidious/templates/_config.tpl index ff0cfc81719..c0867f71b49 100644 --- a/charts/stable/invidious/templates/_config.tpl +++ b/charts/stable/invidious/templates/_config.tpl @@ -60,6 +60,7 @@ data: {{- else }} admins: [""] {{- end }} + enable_user_notifications: {{ $vUserAcc.enable_user_notifications }} # Background Jobs channel_threads: {{ $vBgJobs.channel_threads }} diff --git a/charts/stable/invidious/values.yaml b/charts/stable/invidious/values.yaml index 35b88bd0f29..652659e0431 100644 --- a/charts/stable/invidious/values.yaml +++ b/charts/stable/invidious/values.yaml @@ -97,6 +97,7 @@ invidious: login_enabled: true captcha_enabled: true admins: [] + enable_user_notifications: true background_jobs: channel_threads: 1