diff --git a/config/config.example.yml b/config/config.example.yml index 12560528..8bb19fcc 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -439,7 +439,7 @@ feed_threads: 1 ## Accepted values: a string ## Default: ## -#source_code_url: "" +#modified_source_code_url: "" diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index a4f3ad9c..779e0ffb 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -99,7 +99,7 @@ class Config # URL to the modified source code to be easily AGPL compliant # Will display in the footer, next to the main source code link - property source_code_url : String? = nil + property modified_source_code_url : String? = nil @[YAML::Field(converter: Preferences::FamilyConverter)] property force_resolve : Socket::Family = Socket::Family::UNSPEC # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729) diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index 12381cf7..b7020598 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -119,9 +119,9 @@
- <% if CONFIG.source_code_url %> + <% if CONFIG.modified_source_code_url %> <%= translate(locale, "footer_original_source_code") %> / - <%= translate(locale, "footer_modfied_source_code") %> + <%= translate(locale, "footer_modfied_source_code") %> <% else %> <%= translate(locale, "footer_source_code") %> <% end %>