From 187f5a0a8bbd2437dfc2e4aee92222c39f099dca Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 12 Jan 2023 12:31:03 +0000 Subject: [PATCH] Not so scary 500.html --- mastodon.nix | 1 + patches/not-so-scary-500.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 patches/not-so-scary-500.patch diff --git a/mastodon.nix b/mastodon.nix index c5a3977..940596a 100644 --- a/mastodon.nix +++ b/mastodon.nix @@ -26,6 +26,7 @@ let ./patches/max-toot-chars-api.patch ./patches/simple-form.patch + ./patches/not-so-scary-500.patch ]; postPatch = (import ./branding.nix { pkgs = pkgs; }).branding; }; diff --git a/patches/not-so-scary-500.patch b/patches/not-so-scary-500.patch new file mode 100644 index 0000000..c732a85 --- /dev/null +++ b/patches/not-so-scary-500.patch @@ -0,0 +1,15 @@ +diff --git a/config/locales/en.yml b/config/locales/en.yml +index 679e356b4..eee962a3f 100644 +--- a/config/locales/en.yml ++++ b/config/locales/en.yml +@@ -1062,8 +1062,8 @@ en: + title: Security verification failed + '429': Too many requests + '500': +- content: We're sorry, but something went wrong on our end. +- title: This page is not correct ++ content: It's all good. The server is just reloading because of the updates, patches, et cetera. We'll get back in 10-15 seconds. ++ title: This page is correct + '503': The page could not be served due to a temporary server failure. + noscript_html: To use the Mastodon web application, please enable JavaScript. Alternatively, try one of the native apps for Mastodon for your platform. + existing_username_validator: