From 5c0eef56c561970ef48d2e624a3a1a50356fc235 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 25 Jun 2021 21:08:18 -0700 Subject: [PATCH] Add functionality to contact inst maintainer link --- src/invidious/helpers/helpers.cr | 11 ++++++----- src/invidious/views/template.ecr | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index 020cc57b..05fd1284 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -68,11 +68,12 @@ end class Config include YAML::Serializable - property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions) - property feed_threads : Int32 = 1 # Number of threads to use for updating feeds - property output : String = "STDOUT" # Log file path or STDOUT - property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr - property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc) + property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions) + property feed_threads : Int32 = 1 # Number of threads to use for updating feeds + property output : String = "STDOUT" # Log file path or STDOUT + property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr + property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc) + property instance_maintainer_email : String? = nil # Email to contact the instance maintainer. This is used within the footer as an mailto link. @[YAML::Field(converter: Preferences::URIConverter)] property database_url : URI = URI.parse("") # Database configuration using 12-Factor "Database URL" syntax diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index 6a7dac25..b5121383 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -232,8 +232,8 @@ <%= translate(locale, "Support")%>