Add show_feed_title switch, this will be required later

This commit is contained in:
hgw 2023-12-04 04:12:55 +00:00
parent 3300a0b34b
commit 3c755c0ba2
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
2 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ function checkValuesExist() {
config.floodprotect.flood_protection, config.floodprotect.flood_protection_delay, config.floodprotect.flood_protection, config.floodprotect.flood_protection_delay,
config.errorhandling.error_logging, config.errorhandling.error_channel, config.errorhandling.error_channel_pass, config.errorhandling.error_logging, config.errorhandling.error_channel, config.errorhandling.error_channel_pass,
config.colours.date, config.colours.brackets, config.colours.title, config.colours.author, config.colours.body, config.colours.link, config.colours.help_logo, config.colours.help_motd, config.colours.warning, config.colours.error, config.colours.date, config.colours.brackets, config.colours.title, config.colours.author, config.colours.body, config.colours.link, config.colours.help_logo, config.colours.help_motd, config.colours.warning, config.colours.error,
config.feed.useragent, config.feed.body_max_chars, config.feed.time_format, config.feed.timezone, config.feed.default_amount, config.feed.useragent, config.feed.body_max_chars, config.feed.time_format, config.feed.timezone, config.feed.default_amount, config.feed.show_feed_title,
config.twitter.nitter_instances, config.twitter.default_amount, config.twitter.nitter_instances, config.twitter.default_amount,
config.misc.display_help_logo, config.misc.logging, config.misc.display_help_logo, config.misc.logging,
config.motd.enable, config.motd.list, config.motd.version config.motd.enable, config.motd.list, config.motd.version
@ -55,7 +55,7 @@ function checkValuesExist() {
"config.floodprotect.flood_protection", "config.floodprotect.flood_protection_delay", "config.floodprotect.flood_protection", "config.floodprotect.flood_protection_delay",
"config.errorhandling.error_logging","config.errorhandling.error_channel","config.errorhandling.error_channel_pass", "config.errorhandling.error_logging","config.errorhandling.error_channel","config.errorhandling.error_channel_pass",
"config.colours.date","config.colours.brackets","config.colours.title","config.colours.author","config.colours.body","config.colours.link","config.colours.help_logo","config.colours.help_motd","config.colours.warning","config.colours.error", "config.colours.date","config.colours.brackets","config.colours.title","config.colours.author","config.colours.body","config.colours.link","config.colours.help_logo","config.colours.help_motd","config.colours.warning","config.colours.error",
"config.feed.useragent","config.feed.body_max_chars","config.feed.time_format","config.feed.timezone","config.feed.default_amount", "config.feed.useragent","config.feed.body_max_chars","config.feed.time_format","config.feed.timezone","config.feed.default_amount", "config.feed.show_feed_title",
"config.twitter.nitter_instances","config.twitter.default_amount", "config.twitter.nitter_instances","config.twitter.default_amount",
"config.misc.display_help_logo","config.misc.logging", "config.misc.display_help_logo","config.misc.logging",
"config.motd.enable","config.motd.list","config.motd.version" "config.motd.enable","config.motd.list","config.motd.version"
@ -72,6 +72,7 @@ function checkValuesExist() {
}) })
if (fatalConfigError.has('kill') == true ){ if (fatalConfigError.has('kill') == true ){
timer(10)
consoleLog('[cvc.checkValuesExist] [FATAL] Config is improperly configured, Mercury can not start') consoleLog('[cvc.checkValuesExist] [FATAL] Config is improperly configured, Mercury can not start')
sendUpstream('kill') sendUpstream('kill')
} else { } else {

View File

@ -41,7 +41,8 @@
"body_max_chars": "200", "body_max_chars": "200",
"time_format": "DD MMM YYYY HH:mm:ss ZZ", "time_format": "DD MMM YYYY HH:mm:ss ZZ",
"timezone": "Pacific/Auckland", "timezone": "Pacific/Auckland",
"default_amount": "5" "default_amount": "5",
"show_feed_title": "true"
}, },
"twitter": { "twitter": {
"nitter_instances": [ "nitter_instances": [