From 007646774e779ce84aa8ee3b0acf5b0fef52e94e Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 20 Oct 2019 21:01:27 -0400 Subject: [PATCH] Fix typo in English locale --- locales/en-US.json | 2 +- src/invidious.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/en-US.json b/locales/en-US.json index 8c8a4e82..f9c7109e 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -168,7 +168,7 @@ "Blacklisted regions: ": "Blacklisted regions: ", "Shared `x`": "Shared `x`", "`x` views": { - "([^0-9]|^)1([^,0-9]|$)": "`x` views", + "([^0-9]|^)1([^,0-9]|$)": "`x` view", "": "`x` views" }, "Premieres in `x`": "Premieres in `x`", diff --git a/src/invidious.cr b/src/invidious.cr index 4f1b2b7a..d17f3867 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2032,7 +2032,7 @@ post "/preferences" do |env| PG_DB.exec("UPDATE users SET preferences = $1 WHERE email = $2", preferences, user.email) if config.admins.includes? user.email - config.default_user_preferences.default_home = env.params.body["admin_default_home"]?.try &.as(String) || CONFIG.default_user_preferences.default_home + config.default_user_preferences.default_home = env.params.body["admin_default_home"]?.try &.as(String) || config.default_user_preferences.default_home admin_feed_menu = [] of String 5.times do |index|